]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Fix compile issues with xhci_get_slot_state()
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 4 Jan 2010 20:20:17 +0000 (12:20 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:01 +0000 (14:54 -0800)
commit736c335b6b8c9ddc61ec6e3cceabe1ddb3746a56
tree2e0a8a758e175b63505e5bf7803fff100e3ca63f
parent0b401178b2b8f44003d11511f2781c8ba32776eb
USB: xhci: Fix compile issues with xhci_get_slot_state()

Randy Dunlap reported this error when compiling the xHCI driver:

linux-next-20100104/drivers/usb/host/xhci.h:1214:
sorry, unimplemented: inlining failed in call to 'xhci_get_slot_state': function body not available

The xhci_get_slot_state() function belongs in xhci-dbg.c, since it
involves debugging internal xHCI structures.  However, it is only used in
xhci-hcd.c.  Some toolchains may have issues since the inlined function
body is not in the xhci.h header file.  Remove the inline keyword to avoid
this.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci.h