Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages May 23, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

drivers/usb/misc/onboard_usb_dev.c:358:12: warning: 'onboard_dev_5744_i2c_write_byte' defined but not used [-Wunused-function]
358 | static int onboard_dev_5744_i2c_write_byte(struct i2c_client *client, u16 addr, u8 data)

      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/misc/onboard_usb_dev.c:313:12: warning: 'onboard_dev_5744_i2c_read_byte' defined but not used [-Wunused-function]
  313 | static int onboard_dev_5744_i2c_read_byte(struct i2c_client *client, u16 addr, u8 *data)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

1143d41922c0 ("usb: misc: onboard_usb_dev: Fix usb5744 initialization sequence")

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

Hi all,

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

drivers/usb/misc/onboard_usb_dev.c:358:12: warning: 'onboard_dev_5744_i2c_write_byte' defined but not used [-Wunused-function]
358 | static int onboard_dev_5744_i2c_write_byte(struct i2c_client *client, u16 addr, u8 data)

Quoted 8 lines
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/misc/onboard_usb_dev.c:313:12: warning: 'onboard_dev_5744_i2c_read_byte' defined but not used [-Wunused-function]
  313 | static int onboard_dev_5744_i2c_read_byte(struct i2c_client *client, u16 addr, u8 *data)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

1143d41922c0 ("usb: misc: onboard_usb_dev: Fix usb5744 initialization sequence")

Should now be fixed, thanks!

greg k-h