[PATCH 21/40] scsi: csiostor: csio_hw: Mark known unused variable as __always_unused

From: Lee Jones
Date: Thu Jul 23 2020 - 08:26:37 EST


Fixes the following W=1 kernel build warning(s):

drivers/scsi/csiostor/csio_hw.c: In function âcsio_hw_get_vpd_paramsâ:
drivers/scsi/csiostor/csio_hw.c:309:8: warning: variable âsâ set but not used [-Wunused-but-set-variable]

Cc: Arkadiusz Drabczyk <arkadiusz@xxxxxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/scsi/csiostor/csio_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c
index 950f9cdf0577f..98d4d39aaa572 100644
--- a/drivers/scsi/csiostor/csio_hw.c
+++ b/drivers/scsi/csiostor/csio_hw.c
@@ -306,7 +306,7 @@ csio_hw_get_vpd_params(struct csio_hw *hw, struct csio_vpd *p)
uint8_t *vpd, csum;
const struct t4_vpd_hdr *v;
/* To get around compilation warning from strstrip */
- char *s;
+ char __always_unused *s;

if (csio_is_valid_vpd(hw))
return 0;
--
2.25.1