Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 3 participants 3 messages Aug 9, 2019 Linux-next tree

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/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc':
drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo' [-Wunused-variable]

  struct nvm_geo *geo = &dev->geo;
                  ^~~

Introduced by commit

ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'")

Removing the above line will also remove the last use of the variable "dev" ...

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

Hi all,

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

drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc':
drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo' [-Wunused-variable]

   struct nvm_geo *geo = &dev->geo;
                   ^~~
Quoted 6 lines

Introduced by commit

ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'")

Removing the above line will also remove the last use of the variable "dev" ...

Thanks, will fix it up.

Signature · 1 line
Jens Axboe
#2 lore raw
In reply to Stephen Rothwell
Quoted 10 lines · Stephen Rothwell

Hi all,

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

drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc':
drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo' [-Wunused-variable]

  struct nvm_geo *geo = &dev->geo;
                  ^~~
Quoted 6 lines

Introduced by commit

ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'")

Removing the above line will also remove the last use of the variable "dev" ...

Oh, my bad, thanks!

Quoted 1 line