git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add and use a generic version of devmem_is_allowed()
[sfrench/cifs-2.6.git]
/
include
/
asm-generic
/
io.h
diff --git
a/include/asm-generic/io.h
b/include/asm-generic/io.h
index 9ea83d80eb6f93f62fa98ba9875d03ed58871a69..c6af40ce03befec1740fd9ab705648e1eba2bf81 100644
(file)
--- a/
include/asm-generic/io.h
+++ b/
include/asm-generic/io.h
@@
-1137,6
+1137,10
@@
static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer,
}
#endif
+#ifndef CONFIG_GENERIC_DEVMEM_IS_ALLOWED
+extern int devmem_is_allowed(unsigned long pfn);
+#endif
+
#endif /* __KERNEL__ */
#endif /* __ASM_GENERIC_IO_H */