From: "Hans J. Koch" <hjk@linutronix.de>
To: Mike Frysinger <vapier@gentoo.org>
Cc: hjk@linutronix.de, gregkh@suse.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] UIO: only call pgprot_noncached if defined
Date: Wed, 5 Nov 2008 12:36:11 +0100 [thread overview]
Message-ID: <20081105113610.GA6382@local> (raw)
In-Reply-To: <1225301177-21406-1-git-send-email-vapier@gentoo.org>
There seem to be archs that cannot easily implement a sensible
pgprot_noncached() function, so we should merge this patch. UIO doesn't
compile on these archs right now.
Thanks,
Hans
On Wed, Oct 29, 2008 at 01:26:17PM -0400, Mike Frysinger wrote:
> Not all arches support pgprot_noncached (like the Blackfin port). Other
> drivers seem to handle this by checking to see if it is defined, so let's
> do that in the UIO driver as well.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
> ---
> drivers/uio/uio.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
> index f9b4647..c43dbea 100644
> --- a/drivers/uio/uio.c
> +++ b/drivers/uio/uio.c
> @@ -529,7 +529,9 @@ static int uio_mmap_physical(struct vm_area_struct *vma)
>
> vma->vm_flags |= VM_IO | VM_RESERVED;
>
> +#ifdef pgprot_noncached
> vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> +#endif
>
> return remap_pfn_range(vma,
> vma->vm_start,
> --
> 1.6.0.2
next prev parent reply other threads:[~2008-11-05 11:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 17:26 [PATCH] UIO: only call pgprot_noncached if defined Mike Frysinger
2008-10-29 20:53 ` Hans J. Koch
2008-11-05 0:06 ` Mike Frysinger
2008-11-05 11:36 ` Hans J. Koch [this message]
2008-11-05 16:33 ` Greg KH
2008-11-05 17:08 ` Hans J. Koch
2008-11-05 17:43 ` Mike Frysinger
2008-11-05 17:33 ` Mike Frysinger
2008-11-05 17:42 ` Greg KH
2008-11-05 17:55 ` Mike Frysinger
2008-11-05 18:27 ` Hans J. Koch
2008-11-05 18:36 ` Mike Frysinger
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=20081105113610.GA6382@local \
--to=hjk@linutronix.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=vapier@gentoo.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.