From nobody Mon Jun 19 16:17:35 2023 X-Original-To: dev-commits-src-all@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 4QlFKW3CJDz4dwS2; Mon, 19 Jun 2023 16:17:35 +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 4QlFKW2gQ2z3P7Y; Mon, 19 Jun 2023 16:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687191455; 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=9VbTNv1xpG/hfUeoPteUa4exSyd8v8bGwCAY86uVHm4=; b=KJaKl+s3JUHRMl1XtwS/UY2eDYInCl1up8RVEkrlCdlrDZYDwPnJJyYl5+8LOgiQOPBzdo +M3/mLZEUXnIAe1I67onIwC/nmVNKiyQ1md5yXceZrPxzrrx41RwEltijfTpz9fUVYSoK3 /+0eyAnLj2vCu0J9Y4HFre1w/E/0/IYaGg3XU5bY42CPNnkpbiEHDwnTIiU6BOuD90GKN2 +6enyEaqnZ3PpyeESuqpO/LYJNUboRXrWoYpdSmKo8J2B5bsAExUKXm+Zut6ZGfzAqexiV 9QQbaKs5HArqvvTUUDsxtQx/9nrxa1S849aH/Zb6Jm2CXF2RJBH/pB0Vil76bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687191455; 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=9VbTNv1xpG/hfUeoPteUa4exSyd8v8bGwCAY86uVHm4=; b=yvk5CXYUIGjZMHerIsls1v5qVsl9AIu+wHptfO/zvHHh5anZQc/2eEQgZPTuVy/Pm56Gmg O5tlL/lNL2jc5BQUEAKtxfb+xwPpBV98+iUtSFykNmPzFbr43tOBLr6JH0Lh1IKz0FPbIG Z/pgraFQJILRmYKHAimNeuS/vxGzcvhdyYjfnJrdAgze52rn/8+rL1rslHvjuzL+1WkZCZ Ail9guAZtMeAxL15leWVdmMKZXtP6hxOQHzHGttuknCAZ5KKd7amelurPogWuL99S3Co1O dVAuqHHiNBFy6yEeONL5OqDCSs3JyLpKydC97kay38R/miq3N/eMOQs9PCQAcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687191455; a=rsa-sha256; cv=none; b=SmhVg6AkvkZnSknULpXxk8pMW7yW4/WLMT1FMqWgoeKbJHWcWjIpVaeotWVAZU2LcZs8un cyylugBgDUjm8s0k6eWb9jmKUJhEJ6cXanqhLuYfBSFL7xX+/2Qp4vAWNPMdCDR5CmBo+T vhKsqN4BKmu+si8cXshLmQoHgKdRi6Ucw1TMHz2l6QodhtfTe4Q24J5uDB24CtS6a0/cW3 8L/eEa1r/WPp7moqyNTCoSIZbKUmpA49VmvU55Ti1gdgq4VuietaZHDZ/AIVxUshzt2sa4 byFgpJnNV/ye/dVzEFjYJIqapTKHbt/hbXSN6UJNWYeBQ4CHEFw3a85hkQIcdg== 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 4QlFKW1dWKzP3p; Mon, 19 Jun 2023 16:17:35 +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 35JGHZRM050376; Mon, 19 Jun 2023 16:17:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35JGHZUR050375; Mon, 19 Jun 2023 16:17:35 GMT (envelope-from git) Date: Mon, 19 Jun 2023 16:17:35 GMT Message-Id: <202306191617.35JGHZUR050375@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 7a91ccd2fb8e - main - mpi3mr: fix GCC kernel build List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7a91ccd2fb8e575b6000c74e5a025a3b31644f1f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=7a91ccd2fb8e575b6000c74e5a025a3b31644f1f commit 7a91ccd2fb8e575b6000c74e5a025a3b31644f1f Author: Ed Maste AuthorDate: 2023-06-19 13:23:45 +0000 Commit: Ed Maste CommitDate: 2023-06-19 16:16:39 +0000 mpi3mr: fix GCC kernel build Previously every file that included mpi3mr_app.h but did not use mpi3mr_mgmt_info reported error: 'mpi3mr_mgmt_info' defined but not used. Fixes: 2d1d418e1e7b ("mpi3mr: 3rd Generation Tri-Mode NVMe/SAS/SATA...") Reported by: amd64-gcc12 Cirrus-CI job Sponsored by: The FreeBSD Foundation --- sys/dev/mpi3mr/mpi3mr_app.c | 2 ++ sys/dev/mpi3mr/mpi3mr_app.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/mpi3mr/mpi3mr_app.c b/sys/dev/mpi3mr/mpi3mr_app.c index 0cf25b968283..901bc88eb412 100644 --- a/sys/dev/mpi3mr/mpi3mr_app.c +++ b/sys/dev/mpi3mr/mpi3mr_app.c @@ -67,6 +67,8 @@ static struct cdevsw mpi3mr_cdevsw = { .d_name = "mpi3mr", }; +static struct mpi3mr_mgmt_info mpi3mr_mgmt_info; + static int mpi3mr_open(struct cdev *dev, int flags, int fmt, struct thread *td) { diff --git a/sys/dev/mpi3mr/mpi3mr_app.h b/sys/dev/mpi3mr/mpi3mr_app.h index fa52db051003..733aeb0ae53d 100644 --- a/sys/dev/mpi3mr/mpi3mr_app.h +++ b/sys/dev/mpi3mr/mpi3mr_app.h @@ -75,7 +75,6 @@ int mpi3mr_app_attach(struct mpi3mr_softc *); void mpi3mr_app_detach(struct mpi3mr_softc *); -static struct mpi3mr_mgmt_info mpi3mr_mgmt_info; enum mpi3mr_ioctl_adp_state { MPI3MR_IOCTL_ADP_STATE_UNKNOWN = 0,