From nobody Wed Feb 11 10:01:59 2026 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 0BE9825CC40; Sat, 26 Apr 2025 16:18:40 +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=1745684323; cv=none; b=S8oDLcRqw3t8dzUK+TtzAMi1A622UtQxIvJhtn5R+SqQOCrB+ifK8ABdtrz6PAb15m0+L25aLOZEnMgpjH0CMkQBlJwzQK4KMy9tK5/QKQZgsfueSORb9h2JPTFsrN4RHGyRBQs+vBFOtjSViNNBdWRhprlZ0WJvLmArfWiZryQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745684323; c=relaxed/simple; bh=VyYtCy9B85P8thKXpYtDaf/ZX6+kr5jzyBf/yvSB39c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YaPntw2LUrKS/BJaZLMJntw0zDRYR9fPXeEzh3hDraqcO5hs4wnDEDEuzI8BjF5jjtYLUil7YDvcZGd+NCGEMGP9k4jIYK6X9rPJ3ZTgNZtz8nrJWibbezvigbIIfLJ4PdvdXG+HCutB/2HYfTCCbwBLhhhSEtKgI3jax0D1zcQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CnMkIMv3; 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="CnMkIMv3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 849AFC4CEEB; Sat, 26 Apr 2025 16:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1745684320; bh=VyYtCy9B85P8thKXpYtDaf/ZX6+kr5jzyBf/yvSB39c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CnMkIMv3ji79gfO2IbB4tRqGZbyr4ZC+4oZd01WU0YpHbF2D4w9G865Vn2mZFspGc zXU7FtCHELBjMQ4xxUrNMDXyUCZs3xxPsBgybQ2kP/U5XV16eAftBCc5DFWoSGBUkx cH2BbZXAaGkKYN615tK52lcsZ9FLE32iiIda9gFww7mKJDcd+2sSomfFBBsC5y0RSj rtxCm8Pc+2J52YA7UsH4ieIUH6mxiR6e/w/kN9zVs8ZSnp7ZxeaeN7aCwA1l7UkGoe wBUUK61gUmYkKe7SsGYFmlaTizh6U2X/ZlR2o5zG2mVlciVFzUItOtzpdXrzu8+IOi y2aFulYy4fFQg== From: Alexey Gladkov To: Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org, Alexey Gladkov , Khalid Aziz , "James E.J. Bottomley" , "Martin K. Petersen" Subject: [PATCH v1 2/7] scsi: Define MODULE_DEVICE_TABLE only if necessary Date: Sat, 26 Apr 2025 18:16:33 +0200 Message-ID: <1fa1e0f73501456e56c5fe52bacaee5ca51a6973.1745591072.git.legion@kernel.org> X-Mailer: git-send-email 2.49.0 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" Define MODULE_DEVICE_TABLE only if a structure is defined for it. drivers/scsi/BusLogic.c:3735:26: error: use of undeclared identifier 'blogi= c_pci_tbl' 3735 | MODULE_DEVICE_TABLE(pci, blogic_pci_tbl); | ^ 1 error generated. Fixes: 1079a2d251f2 ("[SCSI] BusLogic: stop using check_region") Cc: Khalid Aziz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Signed-off-by: Alexey Gladkov --- drivers/scsi/BusLogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 1f100270cd38..8ce2ac9293a3 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3731,8 +3731,8 @@ 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); +#endif =20 module_init(blogic_init); module_exit(blogic_exit); --=20 2.49.0