* [PATCH] FRV: Hide uncached_access() when pgprot_noncached is not #defined
@ 2010-03-24 17:05 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2010-03-24 17:05 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-kernel, David Howells
Hide uncached_access() when pgprot_noncached is not #defined. This prevents
the following warning:
CC drivers/char/mem.o
drivers/char/mem.c:229: warning: 'uncached_access' defined but not used
Signed-off-by: David Howells <dhowells@redhat.com>
---
drivers/char/mem.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 1f3215a..0e16cd5 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -225,6 +225,7 @@ int __weak phys_mem_access_prot_allowed(struct file *file,
* outside of main memory.
*
*/
+#ifdef pgprot_noncached
static int uncached_access(struct file *file, unsigned long addr)
{
#if defined(CONFIG_IA64)
@@ -251,6 +252,7 @@ static int uncached_access(struct file *file, unsigned long addr)
return addr >= __pa(high_memory);
#endif
}
+#endif
static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
unsigned long size, pgprot_t vma_prot)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-24 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 17:05 [PATCH] FRV: Hide uncached_access() when pgprot_noncached is not #defined David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®