linux-next: build warnings after merge of the usb tree
Hi all,
After merging the usb tree, today's (actually yesterday's) linux-next build (powerpc allyesconfig) produced these warnings:
./usr/include/linux/usb/raw_gadget.h:74:12: warning: 'usb_raw_io_flags_zero' defined but not used [-Wunused-function]
74 | static int usb_raw_io_flags_zero(__u16 flags)
| ^~~~~~~~~~~~~~~~~~~~~
./usr/include/linux/usb/raw_gadget.h:69:12: warning: 'usb_raw_io_flags_valid' defined but not used [-Wunused-function]
69 | static int usb_raw_io_flags_valid(__u16 flags)
| ^~~~~~~~~~~~~~~~~~~~~~Introduced by commit
f2c2e717642c ("usb: gadget: add raw-gadget interface")
Missing "inline" n a header file?
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's (actually yesterday's) linux-next build (powerpc allyesconfig) produced these warnings:
./usr/include/linux/usb/raw_gadget.h:74:12: warning: 'usb_raw_io_flags_zero' defined but not used [-Wunused-function]
74 | static intusb_raw_io_flags_zero(__u16 flags)| ^~~~~~~~~~~~~~~~~~~~~ ./usr/include/linux/usb/raw_gadget.h:69:12: warning: 'usb_raw_io_flags_valid' defined but not used [-Wunused-function] 69 | static int usb_raw_io_flags_valid(__u16 flags) | ^~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Introduced by commit
f2c2e717642c("usb: gadget: add raw-gadget interface")Missing "inline" n a header file?
Hi Stephen,
Yes, same issue as reported here:
https://github.com/ClangBuiltLinux/linux/issues/934
Thanks for the report!
Greg, should I send a new version with the fix right now, or is it OK to wait until we get comments from Felipe/Alan and then send a new version?
Quoted 22 lines · Andrey Konovalov
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's (actually yesterday's) linux-next build (powerpc allyesconfig) produced these warnings:
./usr/include/linux/usb/raw_gadget.h:74:12: warning: 'usb_raw_io_flags_zero' defined but not used [-Wunused-function]
74 | static intusb_raw_io_flags_zero(__u16 flags)| ^~~~~~~~~~~~~~~~~~~~~ ./usr/include/linux/usb/raw_gadget.h:69:12: warning: 'usb_raw_io_flags_valid' defined but not used [-Wunused-function] 69 | static int usb_raw_io_flags_valid(__u16 flags) | ^~~~~~~~~~~~~~~~~~~~~~Quoted 5 lines
Introduced by commit
f2c2e717642c("usb: gadget: add raw-gadget interface")Missing "inline" n a header file?
Hi Stephen,
Quoted 8 lines
Yes, same issue as reported here:
https://github.com/ClangBuiltLinux/linux/issues/934Thanks for the report!
Greg, should I send a new version with the fix right now, or is it OK to wait until we get comments from Felipe/Alan and then send a new version?
Please send a fix for what is in my tree, I can't rebase it.
thanks,
greg k-h