Re: linux-next: build warnings after merge of the usb tree

From: Andrey Konovalov
Date: Tue Mar 17 2020 - 09:46:10 EST


On Tue, Mar 17, 2020 at 8:57 AM Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> 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?

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?