[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201102142359.561122-19-lee.jones@linaro.org>
Date: Mon, 2 Nov 2020 14:23:58 +0000
From: Lee Jones <lee.jones@...aro.org>
To: martin.petersen@...cle.com, jejb@...ux.ibm.com
Cc: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
Lee Jones <lee.jones@...aro.org>,
Oliver Neukum <oliver@...kum.org>,
Ali Akcaagac <aliakc@....de>,
Jamie Lenehan <lenehan@...bble.org>,
"C.L. Huang" <ching@...ram.com.tw>,
Erich Chen <erich@...ram.com.tw>,
Kurt Garloff <garloff@...e.de>, dc395x@...bble.org
Subject: [RESEND 18/19] scsi: dc395x: Mark 's_stat2' as __maybe_unused
It's only utilised when debugging is enabled.
Fixes the following W=1 kernel build warning(s):
drivers/scsi/dc395x.c: In function ‘start_scsi’:
drivers/scsi/dc395x.c:1359:6: warning: variable ‘s_stat2’ set but not used [-Wunused-but-set-variable]
Cc: Oliver Neukum <oliver@...kum.org>
Cc: Ali Akcaagac <aliakc@....de>
Cc: Jamie Lenehan <lenehan@...bble.org>
Cc: "C.L. Huang" <ching@...ram.com.tw>
Cc: Erich Chen <erich@...ram.com.tw>
Cc: Kurt Garloff <garloff@...e.de>
Cc: dc395x@...bble.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/scsi/dc395x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index f838fe8d74578..7b522ff345d5e 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -1356,7 +1356,7 @@ void selection_timeout_missed(unsigned long ptr)
static u8 start_scsi(struct AdapterCtlBlk* acb, struct DeviceCtlBlk* dcb,
struct ScsiReqBlk* srb)
{
- u16 s_stat2, return_code;
+ u16 __maybe_unused s_stat2, return_code;
u8 s_stat, scsicommand, i, identify_message;
u8 *ptr;
dprintkdbg(DBG_0, "start_scsi: (0x%p) <%02i-%i> srb=%p\n",
--
2.25.1
Powered by blists - more mailing lists