LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] UIO: only call pgprot_noncached if defined
@ 2008-10-29 17:26 Mike Frysinger
  2008-10-29 20:53 ` Hans J. Koch
  2008-11-05 11:36 ` Hans J. Koch
  0 siblings, 2 replies; 12+ messages in thread
From: Mike Frysinger @ 2008-10-29 17:26 UTC (permalink / raw)
  To: hjk, gregkh; +Cc: linux-kernel

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>
---
 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-05 18:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).