Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

frv: hide uncached_access() when pgprot_noncached is not #defined

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

Repairs d7d4d849b4e3acc405ec222884936800ffb26d48 ("drivers/char/mem.c:
cleanups").

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Howells and committed by
Linus Torvalds
ea56f411 c783a29e

+2
+2
drivers/char/mem.c
··· 225 225 * outside of main memory. 226 226 * 227 227 */ 228 + #ifdef pgprot_noncached 228 229 static int uncached_access(struct file *file, unsigned long addr) 229 230 { 230 231 #if defined(CONFIG_IA64) ··· 252 251 return addr >= __pa(high_memory); 253 252 #endif 254 253 } 254 + #endif 255 255 256 256 static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 257 257 unsigned long size, pgprot_t vma_prot)