All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH-RFC 10/10] sparc: switch to GENERIC_PCI_IOMAP
Date: Sun, 04 Dec 2011 11:59:52 +0000	[thread overview]
Message-ID: <20111204120004.GA18758@redhat.com> (raw)
In-Reply-To: <20111204104916.GL15464@redhat.com>

On Sun, Dec 04, 2011 at 12:26:19PM +0100, Sam Ravnborg wrote:
>     > --- a/arch/sparc/include/asm/io_32.h
>     > +++ b/arch/sparc/include/asm/io_32.h
>     > @@ -8,6 +8,10 @@
>     >  #include <asm/page.h>      /* IO address mapping routines need this */
>     >  #include <asm/system.h>
>     >
>     > +#ifdef __KERNEL__
>     > +#include <asm-generic/pci_iomap.h>
>     > +#endif
>     > +
> 
> This file is not exported to userspace - so the test for __KERNEL__ can be
> dropped.
>  
> 
>     > diff --git a/arch/sparc/include/asm/io_64.h b/arch/sparc/include/asm/
>     io_64.h
>     > index 9c89654..19cd51d 100644
>     > --- a/arch/sparc/include/asm/io_64.h
>     > +++ b/arch/sparc/include/asm/io_64.h
>     > @@ -9,6 +9,10 @@
>     >  #include <asm/system.h>
>     >  #include <asm/asi.h>
>     >
>     > +#ifdef __KERNEL__
>     > +#include <asm-generic/pci_iomap.h>
>     > +#endif
> 
> Likewise
> 
>    Sam
> 
>     Sam

Hmm.
Why is there an #ifdef __KERNEL__ a bit lower?
That's why I put the includes within ifdef __KERNEL__ - the
definitions pulled in were within ifdef __KERNEL__ originally.

-- 
MST

  reply	other threads:[~2011-12-04 11:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 10:49 [PATCH-RFC 10/10] sparc: switch to GENERIC_PCI_IOMAP Michael S. Tsirkin
2011-12-04 11:59 ` Michael S. Tsirkin [this message]
2011-12-04 18:07 ` David Miller
     [not found] <cover.1322163031.git.mst@redhat.com>
2011-11-24 20:21 ` Michael S. Tsirkin
2011-11-24 20:21   ` Michael S. Tsirkin
2011-11-24 20:21   ` Michael S. Tsirkin
2011-11-24 20:21   ` Michael S. Tsirkin
2011-11-24 20:21   ` Michael S. Tsirkin
2011-11-24 20:21   ` Michael S. Tsirkin

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=20111204120004.GA18758@redhat.com \
    --to=mst@redhat.com \
    --cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.