From nobody Sat Sep 03 22:55:09 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MKqqd6D72z4bnks; Sat, 3 Sep 2022 22:55:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MKqqd5pCSz4JqW; Sat, 3 Sep 2022 22:55:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662245709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SeYyHypzMfL5JIoJb85gzI9IWYAco9KfQHk+u5zJVW8=; b=H1nxY7ZIDDt9aEarlsQxaJzI+CqWSy/VrULYde+Lvn4weR+TuG6hiCq51Aq2ks9uHDW9e0 FHNgvMyXwaA111EL10hRp//BusC2mUI/F4UZu2hlrTAwJZ1b6bc3eC+z3zrZwq57P/5p3S y15B9fWD6k3uzlu4MggvT1EIDoygTg77nm/xhoKcdPlM9e0erqgyvIKFU1NJD0NO3HgfYo jIQiU2yAxbdZcJpNGqVivGGxsoHKnGDFLjoPxX5kz48ex0R5vpwHQ5R1sWcQHXqcwQWftD J0jOP3JzNpBvTuavYuSBR4jPErJfsrSUacKIlC6kdbgLSEagOaThMbGmRZachA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MKqqd4mV6zHsQ; Sat, 3 Sep 2022 22:55:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 283Mt9rd007127; Sat, 3 Sep 2022 22:55:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 283Mt9JM007126; Sat, 3 Sep 2022 22:55:09 GMT (envelope-from git) Date: Sat, 3 Sep 2022 22:55:09 GMT Message-Id: <202209032255.283Mt9JM007126@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 570773d68c52 - main - mgb: quiten -Wunused-function with LINT builds List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 570773d68c526f039f7a65b099cdced95f75b002 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662245709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SeYyHypzMfL5JIoJb85gzI9IWYAco9KfQHk+u5zJVW8=; b=LJYpADl2AU3k0dzasoOg/76OcZFgs1GNQW/tj0pv26IZ8mIn3ClwRr2F51C0y3CR4pZf/J OYG4A7pI/kl5sJrMGmxLHvHJSaUDmuaMlstEtixrCgGrbb7b+hsU6YmJuSYLWQhNuvizXr QRzxkBhPLqCV7gRsBtyrKoXK6kaOmdfn/KfVQfiDdWype7Is7Wja1OA0H9t4nETxFm9c5e CFnm0jHg5ZLrvU9RM64CA86mZzGVA+5KfV1dnN3jzKy0iIBjRi/SATSGHodiGjXfKL8txO rZEjW35IiYbr7WfBtZlLGdEUIxgsAOIQveAZ2PwmiTTYzzpJpw114wScHSAeIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662245709; a=rsa-sha256; cv=none; b=aw1xZ7jEpayp+KelHQZGyV4O55sDnvUgs25FMAQXrYEEP3BEugcaDD7M3CbSijBhwWwT33 FBnvUpUAvEzbOqXBCAvQjXRN1CrQfJFBP0pX8CBhWUOO2BEYx8w6ndP+LQCn1CgS1HfRpf kK0+qlGK7Lw3rCwjgnk40n81FPwKMh7x95WEfj2cXE7aul97VzZZBND7amwOwaIeYB0fAP CFiGP6Wqa4WICeQf89s1vUKVISbYtYOAGN25dxodPDD9PqiIPE3i4kpk1onQQxdlX3YWgg ozVdGe5sS0A9sYC2V4hDk3aa/TLTXRDmnU1D/240unHXTszvVnC0Tm9SifKuHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=570773d68c526f039f7a65b099cdced95f75b002 commit 570773d68c526f039f7a65b099cdced95f75b002 Author: Bjoern A. Zeeb AuthorDate: 2022-09-03 22:47:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-09-03 22:47:19 +0000 mgb: quiten -Wunused-function with LINT builds As the function itself seems to be helpful don't remove the code but change the #ifdef DEBUG to #if 0 to avoid: warning: unused function 'mgb_dump_some_stats' [-Wunused-function] with LINT builds. --- sys/dev/mgb/if_mgb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c index ec8619f1dec4..8c58b965b7df 100644 --- a/sys/dev/mgb/if_mgb.c +++ b/sys/dev/mgb/if_mgb.c @@ -619,7 +619,7 @@ mgb_init(if_ctx_t ctx) error); } -#ifdef DEBUG +#if 0 static void mgb_dump_some_stats(struct mgb_softc *sc) {