diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-09 09:44:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-09 10:02:44 +0200 |
commit | b3e5759e090e7f1dcb8d226bd77a3db203892ebd (patch) | |
tree | 31ce7065b7b81542497e470a5df4116dece13aee /hw | |
parent | 85097db6956bc86e2377b63a8309cb8b24d54139 (diff) | |
download | qemu-b3e5759e090e7f1dcb8d226bd77a3db203892ebd.zip qemu-b3e5759e090e7f1dcb8d226bd77a3db203892ebd.tar.gz qemu-b3e5759e090e7f1dcb8d226bd77a3db203892ebd.tar.bz2 |
usb-musb: uninline functions
Prototype without "inline" keyword breaks the build with some gcc
versions. Noticed by Alexander Graf.
Fix this by removing the inline keywork everywhere. Some functions
can't be inlined anyway as the are referenced using function pointers.
Beside that gcc does a pretty good job on auto-inlining these days.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb-musb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/usb-musb.c b/hw/usb-musb.c index b30caeb..38986d3 100644 --- a/hw/usb-musb.c +++ b/hw/usb-musb.c @@ -497,14 +497,14 @@ static void musb_detach(USBPort *port) musb_session_update(s, 1, s->session); } -static inline void musb_cb_tick0(void *opaque) +static void musb_cb_tick0(void *opaque) { MUSBEndPoint *ep = (MUSBEndPoint *) opaque; ep->delayed_cb[0](&ep->packey[0].p, opaque); } -static inline void musb_cb_tick1(void *opaque) +static void musb_cb_tick1(void *opaque) { MUSBEndPoint *ep = (MUSBEndPoint *) opaque; @@ -513,7 +513,7 @@ static inline void musb_cb_tick1(void *opaque) #define musb_cb_tick (dir ? musb_cb_tick1 : musb_cb_tick0) -static inline void musb_schedule_cb(USBDevice *dev, USBPacket *packey) +static void musb_schedule_cb(USBDevice *dev, USBPacket *packey) { MUSBPacket *p = container_of(packey, MUSBPacket, p); MUSBEndPoint *ep = p->ep; @@ -572,7 +572,7 @@ static int musb_timeout(int ttype, int speed, int val) hw_error("bad interval\n"); } -static inline void musb_packet(MUSBState *s, MUSBEndPoint *ep, +static void musb_packet(MUSBState *s, MUSBEndPoint *ep, int epnum, int pid, int len, USBCallback cb, int dir) { int ret; |