Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

g_NCR5380: Kill compiler warning if builtin

If CONFIG_SCSI_GENERIC_NCR5380=y:

drivers/scsi/g_NCR5380.c:727: warning: 'id_table' defined but not used

In the non-modular case, MODULE_DEVICE_TABLE() expands to nothing, and
id_table is not referenced.

Correct the existing #ifdef to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Geert Uytterhoeven and committed by
James Bottomley
b026e8ed 700d9855

+1 -1
+1 -1
drivers/scsi/g_NCR5380.c
··· 723 723 module_param(dtc_3181e, int, 0); 724 724 MODULE_LICENSE("GPL"); 725 725 726 - #ifndef SCSI_G_NCR5380_MEM 726 + #if !defined(SCSI_G_NCR5380_MEM) && defined(MODULE) 727 727 static struct isapnp_device_id id_table[] = { 728 728 { 729 729 ISAPNP_ANY_ID, ISAPNP_ANY_ID,