Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d63a6475 authored by Andrey Konovalov's avatar Andrey Konovalov
Browse files

UPSTREAM: usb: raw_gadget: fix compilation warnings in uapi headers



(Upstream commit 956ae8df7fed0a2acc7ae934f24493eaeb031f62.)

Mark usb_raw_io_flags_valid() and usb_raw_io_flags_zero() as inline to
fix the following warnings:

./usr/include/linux/usb/raw_gadget.h:69:12: warning: unused function 'usb_raw_io_flags_valid' [-Wunused-function]
./usr/include/linux/usb/raw_gadget.h:74:12: warning: unused function 'usb_raw_io_flags_zero' [-Wunused-function]

Reported-by: default avatarkernelci.org bot <bot@kernelci.org>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Link: https://lore.kernel.org/r/6206b80b3810f95bfe1d452de45596609a07b6ea.1584456779.git.andreyknvl@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 147413187
Signed-off-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Change-Id: I9bc9708a39f3af4e6a892685530ff04cdf5abe64
parent a59105f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,12 +66,12 @@ struct usb_raw_event {
#define USB_RAW_IO_FLAGS_ZERO	0x0001
#define USB_RAW_IO_FLAGS_MASK	0x0001

static int usb_raw_io_flags_valid(__u16 flags)
static inline int usb_raw_io_flags_valid(__u16 flags)
{
	return (flags & ~USB_RAW_IO_FLAGS_MASK) == 0;
}

static int usb_raw_io_flags_zero(__u16 flags)
static inline int usb_raw_io_flags_zero(__u16 flags)
{
	return (flags & USB_RAW_IO_FLAGS_ZERO);
}