History

usb: raw_gadget: fix compilation warnings in uapi headers

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]

Andrey Konovalov committed 6 years ago

Commit 956ae8d1 parent df8df5e1 file · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/usb/raw_gadget.h+2−2
@@ -66,12 +66,12 @@ struct usb_raw_event { · 65 unmodified lines
66#define USB_RAW_IO_FLAGS_ZERO 0x000166#define USB_RAW_IO_FLAGS_ZERO 0x0001
67#define USB_RAW_IO_FLAGS_MASK 0x000167#define USB_RAW_IO_FLAGS_MASK 0x0001
68 68
69static int usb_raw_io_flags_valid(__u16 flags)69static inline int usb_raw_io_flags_valid(__u16 flags)
70{70{
71 return (flags & ~USB_RAW_IO_FLAGS_MASK) == 0;71 return (flags & ~USB_RAW_IO_FLAGS_MASK) == 0;
72}72}
73 73
74static int usb_raw_io_flags_zero(__u16 flags)74static inline int usb_raw_io_flags_zero(__u16 flags)
75{75{
76 return (flags & USB_RAW_IO_FLAGS_ZERO);76 return (flags & USB_RAW_IO_FLAGS_ZERO);
77}77}