Skip to contentSkip to conversation

linux-next: build warning after merge of the block tree

DISCUSSION Applied Stephen Rothwell 3 participants 3 messages May 14, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/memstick/core/mspro_block.c: In function 'mspro_block_init_disk':
drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable 'host' [-Wunused-variable]

  struct memstick_host *host = card->host;
                        ^~~~
drivers/memstick/core/ms_block.c: In function 'msb_init_disk':
drivers/memstick/core/ms_block.c:2097:24: warning: unused variable 'host' [-Wunused-variable]
  struct memstick_host *host = card->host;
                        ^~~~

Introduced by commit

7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 4 lines · Stephen Rothwell

Hi all,

After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

The look entirely correct, but oddly enough my compiler did not bother to warn.

Fix below:

--

Quoted 1 line

From 6610bd5bbbf05fa1d925b0601a09e84cada9e0a2 Mon Sep 17 00:00:00 2001

From: Christoph Hellwig <[email protected]>
Date: Mon, 14 May 2018 10:24:34 +0200
Subject: memstick: remove unused variables

Fixes 7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit")
---
 drivers/memstick/core/ms_block.c    | 1 -
 drivers/memstick/core/mspro_block.c | 1 -
 2 files changed, 2 deletions(-)
drivers/memstick/core/ms_block.c +0 -1
index b2d025f42d14..a15181fa45f7 100644
@@ -2094,7 +2094,6 @@ static const struct block_device_operations msb_bdops = {
 static int msb_init_disk(struct memstick_dev *card)
 {
 	struct msb_data *msb = memstick_get_drvdata(card);
-	struct memstick_host *host = card->host;
 	int rc;
 	unsigned long capacity;
 
drivers/memstick/core/mspro_block.c +0 -1
index a2fadc605750..5ee932631fae 100644
@@ -1170,7 +1170,6 @@ static int mspro_block_init_card(struct memstick_dev *card)
 static int mspro_block_init_disk(struct memstick_dev *card)
 {
 	struct mspro_block_data *msb = memstick_get_drvdata(card);
-	struct memstick_host *host = card->host;
 	struct mspro_devinfo *dev_info = NULL;
 	struct mspro_sys_info *sys_info = NULL;
 	struct mspro_sys_attr *s_attr = NULL;
Signature · 1 line
2.17.0
Applied
#2 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Stephen Rothwell

Hi all,

After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

The look entirely correct, but oddly enough my compiler did not bother to warn.

Applied, thanks.

Signature · 1 line
Jens Axboe