From nobody Mon Oct 6 06:31:19 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAEE72E175F; Thu, 24 Jul 2025 13:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753365023; cv=none; b=ic/eUPSO4LZ7NnuFi3GcPNgBv2COWKub89GlwF1qGdbBYzH4/DN6RcnYp98CM7+o3gJNtOxyBIZILttXfbkoZK3dNTr72LBLMALPTXXq+hXMaOb5CV708HghYGnMsZqW3nL+aRxnOFc4hxyzEm3zQ+scYizG0frlNrWk/a1JG2U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753365023; c=relaxed/simple; bh=9uoPb133GCaKetRWqdjQUMfYOCdH8EWDfhbgoqCMV1M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gGEnK42D/pLab1YjYWBplyMaWFA3M1q/rb61qT80bS3gr/KiwZHBATCCLYtG/ba1Gi73Z0AxEoQ3OLwx393WdOKvXOgxGQQiXYkx6E7DbWzIXuxVHfN5zv5JQtE18Gc1gQpYafBlu/KaKQAwEHaz6+6Eybs5smzN08PR8/wT6cM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=moaa3z5j; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="moaa3z5j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B2FCC4CEF7; Thu, 24 Jul 2025 13:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753365022; bh=9uoPb133GCaKetRWqdjQUMfYOCdH8EWDfhbgoqCMV1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=moaa3z5jyK7uTq41wwmcZXVwkOCVfOiLXzuBa3KTbS15p5ahG5JKRRV0yPA67u+hg pLZBMzNl0xBIzq3BD/CKk9pbwXwOscQ1xpI1uA38zkJ8hZlnuPakqPfiI9moFRTnAZ eHH3864VAUutwr/UJcBJSKd7iTZHmiIBnMV0aEfFbr4YSTzWLxW1ookmjU9Bv7NKeH azx+pPiqiheOIDz2ZAhd7Ao9SjF8Ikvaa0lecV2y45mRjjmnBJ7CwZ9S6SX6/CtORJ +uBgwl7RBAabniACPqJalZXRXdhH4EGalWusaPOoIidhwsihCJF9v3DpELwx7PnQFq KZqynNLB6RZMA== From: Alexey Gladkov To: Masahiro Yamada , Petr Pavlu , Luis Chamberlain , Sami Tolvanen , Daniel Gomez , Nathan Chancellor , Nicolas Schier Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org, Alexey Gladkov , Khalid Aziz , "Martin K. Petersen" , linux-scsi@vger.kernel.org, James Bottomley Subject: [PATCH v5 05/10] scsi: Always define blogic_pci_tbl structure Date: Thu, 24 Jul 2025 15:49:42 +0200 Message-ID: X-Mailer: git-send-email 2.50.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The blogic_pci_tbl structure is used by the MODULE_DEVICE_TABLE macro. There is no longer a need to protect it with the MODULE condition, since this no longer causes the compiler to warn about an unused variable. Cc: Khalid Aziz Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Suggested-by: James Bottomley Signed-off-by: Alexey Gladkov --- drivers/scsi/BusLogic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 1f100270cd38..08e12a3d6703 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3715,7 +3715,6 @@ static void __exit blogic_exit(void) =20 __setup("BusLogic=3D", blogic_setup); =20 -#ifdef MODULE /*static const struct pci_device_id blogic_pci_tbl[] =3D { { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, @@ -3731,7 +3730,6 @@ static const struct pci_device_id blogic_pci_tbl[] = =3D { {PCI_DEVICE(PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT)}, {0, }, }; -#endif MODULE_DEVICE_TABLE(pci, blogic_pci_tbl); =20 module_init(blogic_init); --=20 2.50.1