public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
  • * [PATCH v3 7/6] scsi: Always define MODULE_DEVICE_TABLE
           [not found] <cover.1748335606.git.legion@kernel.org>
           [not found] ` <628e85f1b7e9d0423a8b83ac3150b3e151c9c4e3.1748335606.git.legion@kernel.org>
    @ 2025-05-27 13:15 ` Alexey Gladkov
      2025-05-27 13:22   ` James Bottomley
      1 sibling, 1 reply; 8+ messages in thread
    From: Alexey Gladkov @ 2025-05-27 13:15 UTC (permalink / raw)
      To: James Bottomley, Petr Pavlu, Luis Chamberlain, Sami Tolvanen,
    	Daniel Gomez, Masahiro Yamada, Nathan Chancellor, Nicolas Schier,
    	Khalid Aziz, Martin K. Petersen
      Cc: linux-kernel, linux-modules, linux-kbuild, linux-scsi,
    	Alexey Gladkov
    
    Since MODULE_DEVICE_TABLE no longer depends on whether the module is
    built separately or compiled into the kernel, it now makes sense to
    always define DEVICE_TABLE. In this case, even if the module is in the
    kernel, correct module.builtin.modaliases will be generated.
    
    Suggested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
    Signed-off-by: Alexey Gladkov <legion@kernel.org>
    ---
     drivers/scsi/BusLogic.c | 2 --
     1 file changed, 2 deletions(-)
    
    diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c
    index 8ce2ac9293a3..08e12a3d6703 100644
    --- a/drivers/scsi/BusLogic.c
    +++ b/drivers/scsi/BusLogic.c
    @@ -3715,7 +3715,6 @@ static void __exit blogic_exit(void)
     
     __setup("BusLogic=", blogic_setup);
     
    -#ifdef MODULE
     /*static const struct pci_device_id blogic_pci_tbl[] = {
     	{ PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER,
     	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
    @@ -3732,7 +3731,6 @@ static const struct pci_device_id blogic_pci_tbl[] = {
     	{0, },
     };
     MODULE_DEVICE_TABLE(pci, blogic_pci_tbl);
    -#endif
     
     module_init(blogic_init);
     module_exit(blogic_exit);
    -- 
    2.49.0
    
    
    ^ permalink raw reply related	[flat|nested] 8+ messages in thread

  • end of thread, other threads:[~2025-05-27 14:06 UTC | newest]
    
    Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <cover.1748335606.git.legion@kernel.org>
         [not found] ` <628e85f1b7e9d0423a8b83ac3150b3e151c9c4e3.1748335606.git.legion@kernel.org>
    2025-05-27 11:28   ` [PATCH v3 1/6] scsi: Define MODULE_DEVICE_TABLE only if necessary James Bottomley
    2025-05-27 11:54     ` Alexey Gladkov
    2025-05-27 11:58       ` James Bottomley
    2025-05-27 12:58         ` Alexey Gladkov
    2025-05-27 14:06   ` [PATCH v4 1/6] scsi: Always define blogic_pci_tbl structure Alexey Gladkov
    2025-05-27 13:15 ` [PATCH v3 7/6] scsi: Always define MODULE_DEVICE_TABLE Alexey Gladkov
    2025-05-27 13:22   ` James Bottomley
    2025-05-27 13:44     ` Alexey Gladkov
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox