qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <weil@mail.berlios.de>
To: Alexander Graf <agraf@suse.de>
Cc: QEMU-devel Developers <qemu-devel@nongnu.org>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] USB: Fix build breakage in musb
Date: Sun, 08 May 2011 17:54:42 +0200	[thread overview]
Message-ID: <4DC6BCC2.4020108@mail.berlios.de> (raw)
In-Reply-To: <1304809179-7359-1-git-send-email-agraf@suse.de>

Am 08.05.2011 00:59, schrieb Alexander Graf:
> Today's git failed building for me. It looks like a mismatching function
> prototype definition.
>
> This patch fixes compilation of arm-softmmu for me.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
> hw/usb-musb.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/usb-musb.c b/hw/usb-musb.c
> index b30caeb..85a2b6f 100644
> --- a/hw/usb-musb.c
> +++ b/hw/usb-musb.c
> @@ -261,7 +261,7 @@
>
> static void musb_attach(USBPort *port);
> static void musb_detach(USBPort *port);
> -static void musb_schedule_cb(USBDevice *dev, USBPacket *p);
> +static inline void musb_schedule_cb(USBDevice *dev, USBPacket *p);
>
> static USBPortOps musb_port_ops = {
> .attach = musb_attach,

The patch fixes the warning, because now forward declaration and
function definition match, but it's not the correct approach.

Instead of adding 'inline' here, 'inline' should be removed from the 
definition.
The function musb_schedule_cb is used via a function pointer, so it is 
never inline.

Regards,
Stefan W.

  parent reply	other threads:[~2011-05-08 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 22:59 [Qemu-devel] [PATCH] USB: Fix build breakage in musb Alexander Graf
2011-05-08 15:40 ` Andreas Färber
2011-05-08 15:54 ` Stefan Weil [this message]
2011-05-08 16:08   ` Stefan Weil
2011-05-09  7:43     ` Gerd Hoffmann
2011-05-09  9:05       ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC6BCC2.4020108@mail.berlios.de \
    --to=weil@mail.berlios.de \
    --cc=agraf@suse.de \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).