Commit c1d511d4 authored by Mika Kukkonen's avatar Mika Kukkonen Committed by Greg Kroah-Hartman

[PATCH] USB: Trivial fix to include/linux/usb.h

Hi Greg!

I am compiling allmodconfig with some extra gcc warnings enabled
(-W -Wno-unused -Wno-sign-compare -Winline -Wundef) and got this one:

  CC [M]  security/root_plug.o
In file included from security/root_plug.c:30:
include/linux/usb.h:358: warning: `inline' is not at beginning of declaration

Patch is trivial:
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 7b971838
......@@ -355,7 +355,7 @@ extern int usb_driver_claim_interface(struct usb_driver *driver,
* may need to explicitly claim that lock.
*
*/
static int inline usb_interface_claimed(struct usb_interface *iface) {
static inline int usb_interface_claimed(struct usb_interface *iface) {
return (iface->dev.driver != NULL);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment