[U-Boot] [PATCH 13/20] scsi: Put 'scsi_device_list' variable under CONFIG_PCI
Simon Glass
sjg at chromium.org
Fri Oct 19 05:45:10 CEST 2012
From: Taylor Hutt <thutt at chromium.org>
This change removes warnings about 'scsi_device_list' being declared
but never used.
Signed-off-by: Taylor Hutt <thutt at chromium.org>
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/cmd_scsi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c
index f64d6f4..f58a220 100644
--- a/common/cmd_scsi.c
+++ b/common/cmd_scsi.c
@@ -60,7 +60,9 @@ struct scsi_device {
#define SCSI_DEV_LIST {SCSI_VEND_ID, SCSI_DEV_ID}
#endif
+#ifdef CONFIG_PCI
static struct scsi_device scsi_device_list[] = { SCSI_DEV_LIST };
+#endif
static ccb tempccb; /* temporary scsi command buffer */
static unsigned char tempbuff[512]; /* temporary data buffer */
--
1.7.7.3
More information about the U-Boot
mailing list