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]
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -66,12 +66,12 @@ struct usb_raw_event { · 65 unmodified lines | |||
| 66 | #define USB_RAW_IO_FLAGS_ZERO 0x0001 | 66 | #define USB_RAW_IO_FLAGS_ZERO 0x0001 |
| 67 | #define USB_RAW_IO_FLAGS_MASK 0x0001 | 67 | #define USB_RAW_IO_FLAGS_MASK 0x0001 |
| 68 | 68 | ||
| 69 | static int usb_raw_io_flags_valid(__u16 flags) | 69 | static 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 | ||
| 74 | static int usb_raw_io_flags_zero(__u16 flags) | 74 | static 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 | } |