Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 1 participant 2 messages Jun 12, 2018 – Jun 18, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Samuel,

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

drivers/nfc/fdp/fdp.c: In function 'fdp_nci_open':
drivers/nfc/fdp/fdp.c:250:17: warning: unused variable 'dev' [-Wunused-variable]

  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_close':
drivers/nfc/fdp/fdp.c:260:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_send':
drivers/nfc/fdp/fdp.c:268:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_recv_frame':
drivers/nfc/fdp/fdp.c:279:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_core_reset_ntf_packet':
drivers/nfc/fdp/fdp.c:602:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_prop_patch_ntf_packet':
drivers/nfc/fdp/fdp.c:614:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_remove':
drivers/nfc/fdp/fdp.c:789:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~

Introduced by commit

7579d009c4a1 ("NFC: fdp: Remove __func__ from dev_dbg()")

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

Hi all,

Quoted 33 lines · On Tue, 12 Jun 2018 10:19:54 +1000 Stephen Rothwell <[email protected]>…

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

drivers/nfc/fdp/fdp.c: In function 'fdp_nci_open':
drivers/nfc/fdp/fdp.c:250:17: warning: unused variable 'dev' [-Wunused-variable]

  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_close':
drivers/nfc/fdp/fdp.c:260:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_send':
drivers/nfc/fdp/fdp.c:268:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_recv_frame':
drivers/nfc/fdp/fdp.c:279:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_core_reset_ntf_packet':
drivers/nfc/fdp/fdp.c:602:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_prop_patch_ntf_packet':
drivers/nfc/fdp/fdp.c:614:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
drivers/nfc/fdp/fdp.c: In function 'fdp_nci_remove':
drivers/nfc/fdp/fdp.c:789:17: warning: unused variable 'dev' [-Wunused-variable]
  struct device *dev = &info->phy->i2c_dev->dev;
                 ^~~
Quoted 3 lines

Introduced by commit

7579d009c4a1 ("NFC: fdp: Remove __func__ from dev_dbg()")

I am still getting these ...

Signature · 2 lines
Cheers,
Stephen Rothwell