Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Oct 8, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Boris,

After merging the nand tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/mtd/nand/raw/nand_toshiba.c: In function 'toshiba_nand_read_page_benand':
drivers/mtd/nand/raw/nand_toshiba.c:54:19: warning: unused variable 'mtd' [-Wunused-variable]

  struct mtd_info *mtd = nand_to_mtd(chip);
                   ^~~
drivers/mtd/nand/raw/nand_toshiba.c: In function 'toshiba_nand_read_subpage_benand':
drivers/mtd/nand/raw/nand_toshiba.c:68:19: warning: unused variable 'mtd' [-Wunused-variable]
  struct mtd_info *mtd = nand_to_mtd(chip);
                   ^~~

Introduced by commit

fe8b76ec9886 ("mtd: rawnand: toshiba: Pass a single nand_chip object to the status helper")

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

Hi Stephen,

Stephen Rothwell <[email protected]> wrote on Mon, 8 Oct 2018 11:38:42 +1100:

Quoted 1 line

Hi Boris,

Boris is still there but I'm in charge of the NAND tree these days (and the one to blame too for this one :) ).

Quoted 13 lines

After merging the nand tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/mtd/nand/raw/nand_toshiba.c: In function 'toshiba_nand_read_page_benand':
drivers/mtd/nand/raw/nand_toshiba.c:54:19: warning: unused variable 'mtd' [-Wunused-variable]

  struct mtd_info *mtd = nand_to_mtd(chip);
                   ^~~
drivers/mtd/nand/raw/nand_toshiba.c: In function 'toshiba_nand_read_subpage_benand':
drivers/mtd/nand/raw/nand_toshiba.c:68:19: warning: unused variable 'mtd' [-Wunused-variable]
  struct mtd_info *mtd = nand_to_mtd(chip);
                   ^~~
Quoted 3 lines

Introduced by commit

fe8b76ec9886 ("mtd: rawnand: toshiba: Pass a single nand_chip object to the status helper")

Thanks for the warning, I'll correct it for tomorrow.

Kind regards,
Miquèl

#2 lore raw

Hi Miquel,

Quoted 8 lines · On Mon, 8 Oct 2018 09:53:34 +0200 Miquel Raynal <[email protected]>…

Stephen Rothwell <[email protected]> wrote on Mon, 8 Oct 2018 11:38:42 +1100:

Quoted 1 line

Hi Boris,

Boris is still there but I'm in charge of the NAND tree these days (and the one to blame too for this one :) ).

I'll add you as a contact for this tree.

Signature · 2 lines
Cheers,
Stephen Rothwell