Re: [PATCH v3 1/6] scsi: Define MODULE_DEVICE_TABLE only if necessary

From
James Bottomley <James.Bottomley@HansenPartnership.com>
Date
2025-05-27 11:29:01
Also in
linux-kbuild, linux-scsi, lkml
Reply to
Alexey Gladkov, 2025-05-27
On Tue, 2025-05-27 at 11:07 +0200, Alexey Gladkov wrote:
Define MODULE_DEVICE_TABLE only if a structure is defined for it.

drivers/scsi/BusLogic.c:3735:26: error: use of undeclared identifier
'blogic_pci_tbl'
 3735 | MODULE_DEVICE_TABLE(pci, blogic_pci_tbl);
Well, a) need to cc the scsi list and b) how is this possible when
MODULE_DEVICE_TABLE() has an empty definition if MODULE isn't defined
(so the guard you move should be over an empty statement)?

Regards,

James
Thread (31 messages) 31 messages, 3 authors, last reply 2025-06-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help