Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Jul 23, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Greg,

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

drivers/tty/serial/8250/8250_exar.c: In function 'pci_xr17v35x_setup':
drivers/tty/serial/8250/8250_exar.c:380:31: warning: unused variable 'board' [-Wunused-variable]

  const struct exar8250_board *board = priv->board;
                               ^~~~~

Introduced by commit

328c11f24b57 ("serial: 8250_exar: Remove useless has_slave member")

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

Hi Greg,

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

drivers/tty/serial/8250/8250_exar.c: In function 'pci_xr17v35x_setup':
drivers/tty/serial/8250/8250_exar.c:380:31: warning: unused variable 'board' [-Wunused-variable]

Quoted 6 lines
  const struct exar8250_board *board = priv->board;
                               ^~~~~

Introduced by commit

328c11f24b57 ("serial: 8250_exar: Remove useless has_slave member")

Oops, my fault. Usually I compile with W=1, but I somehow missed this warning (Okay, found, I used to have it in another patch). Sorry, the just sent patch should fix it.

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy