qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] usb-linux.c: #define __user to work around broken Linux headers
Date: Thu, 28 Aug 2008 15:06:12 -0500	[thread overview]
Message-ID: <48B70534.40103@codemonkey.ws> (raw)
In-Reply-To: <18614.53575.679530.36194@mariner.uk.xensource.com>

Ian Jackson wrote:
> Really we would like to #include <linux/compiler.h> but according
> to changelogs in xen-unstable, at least FC6R3 doesn't have it.
>
> So instead we do this: we  #define __user  ourselves, which is
> what <linux/compiler.h> does on systems which are not broken.
>
> (This change is identical to xen-unstable
>  11601:ba7487569374378b398a1b134ea108a6a8209b4b.
>  and qemu-xen 1f153e0706851b43bb5c2083e531fd7b64b75be1.)
>   

This was applied at one point in time, but then reverted IIRC.  I think 
Fabrice objected?

Regards,

Anthony Liguori

> Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
> ---
>  usb-linux.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/usb-linux.c b/usb-linux.c
> index c31d56a..db51fe6 100644
> --- a/usb-linux.c
> +++ b/usb-linux.c
> @@ -33,6 +33,9 @@
>  #if defined(__linux__)
>  #include <dirent.h>
>  #include <sys/ioctl.h>
> +/* Some versions of usbdevice_fs.h need __user to be defined for them.   */
> +/* This may (harmlessly) conflict with a definition in linux/compiler.h. */
> +#define __user
>  #include <linux/usbdevice_fs.h>
>  #include <linux/version.h>
>  #include <signal.h>
>   

  reply	other threads:[~2008-08-28 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 16:24 [Qemu-devel] [PATCH] usb-linux.c: #define __user to work around broken Linux headers Ian Jackson
2008-08-28 20:06 ` Anthony Liguori [this message]
2008-08-28 20:41   ` Thiemo Seufer
2008-08-28 20:49     ` Anthony Liguori
2008-08-29  9:47     ` Ian Jackson
2008-09-07  2:50       ` Anthony Liguori

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=48B70534.40103@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --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).