Skip to content

Commit

Permalink
block: mtip32xx: mtip32xx: Mark debugging variable 'start' as __maybe…
Browse files Browse the repository at this point in the history
…_unused

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

 drivers/block/mtip32xx/mtip32xx.c: In function ‘mtip_standby_immediate’:
 drivers/block/mtip32xx/mtip32xx.c:1216:16: warning: variable ‘start’ set but not used [-Wunused-but-set-variable]

Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210312105530.2219008-4-lee.jones@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Lee Jones authored and Jens Axboe committed Apr 6, 2021
1 parent b8b8710 commit d0e0cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ static int mtip_standby_immediate(struct mtip_port *port)
{
int rv;
struct host_to_dev_fis fis;
unsigned long start;
unsigned long __maybe_unused start;
unsigned int timeout;

/* Build the FIS. */
Expand Down

0 comments on commit d0e0cb9

Please sign in to comment.