>From 355eac426aea2e1f98b99a41707b37e9ba3ef02b Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Tue, 4 Nov 2014 08:06:03 +0100 Subject: [PATCH] scsi: Fixup compilation warning when SCSI_CONSTANTS is not set ARRAY_SIZE() requires the array to actually have a size. Signed-off-by: Hannes Reinecke --- drivers/scsi/constants.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index b3cbf3a..a1a7fca 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c @@ -267,7 +267,7 @@ static struct sa_name_list sa_names_arr[] = { }; #else /* ifndef CONFIG_SCSI_CONSTANTS */ -static const char *cdb_byte0_names[]; +static const char *cdb_byte0_names[0]; static struct sa_name_list sa_names_arr[] = { {VARIABLE_LENGTH_CMD, NULL, 0}, -- 1.8.5.2