diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-01-03 17:00:16 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-03-09 07:42:30 -0400 |
commit | b026e8ed55e05a81018ba4ce73ca0cf2c9300950 (patch) | |
tree | c99b174bcd8220e4276d2bd8685dae0daccf5773 | |
parent | 700d98551ff16a59e164bf884aefbdc5d798ff75 (diff) |
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>
-rw-r--r-- | drivers/scsi/g_NCR5380.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index f35792f7051c..74ec2f5669ab 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c | |||
@@ -723,7 +723,7 @@ module_param(ncr_53c400a, int, 0); | |||
723 | module_param(dtc_3181e, int, 0); | 723 | module_param(dtc_3181e, int, 0); |
724 | MODULE_LICENSE("GPL"); | 724 | MODULE_LICENSE("GPL"); |
725 | 725 | ||
726 | #ifndef SCSI_G_NCR5380_MEM | 726 | #if !defined(SCSI_G_NCR5380_MEM) && defined(MODULE) |
727 | static struct isapnp_device_id id_table[] = { | 727 | static struct isapnp_device_id id_table[] = { |
728 | { | 728 | { |
729 | ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 729 | ISAPNP_ANY_ID, ISAPNP_ANY_ID, |