Module: xenomai-head
Branch: master
Commit: f27e454e060104a022269c7bc1cf8ee3e12cadee
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=f27e454e060104a022269c7bc1cf8ee3e12cadee

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Nov 12 12:33:49 2009 +0100

wrappers: make sure pgprot_noncached() is always defined

---

 include/asm-generic/wrappers.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index 1cfd60c..2ef6016 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -376,6 +376,12 @@ unsigned long find_next_bit(const unsigned long *addr,
 #define __GFP_BITS_SHIFT 20
 #endif
 
+#include <asm/pgtable.h>
+
+#ifndef pgprot_noncached
+#define pgprot_noncached(p) (p)
+#endif /* !pgprot_noncached */
+
 #define wrap_switch_mm(prev,next,task) \
     switch_mm(prev,next,task)
 #define wrap_enter_lazy_tlb(mm,task)   \
@@ -503,10 +509,6 @@ static inline struct task_struct 
*wrap_find_task_by_pid(pid_t nr)
 
 #include <asm/semaphore.h>
 
-#ifndef CONFIG_MMU
-#define pgprot_noncached(p) (p)
-#endif /* !CONFIG_MMU */
-
 #define wrap_find_task_by_pid(nr)  find_task_by_pid(nr)
 
 #endif /* LINUX_VERSION_CODE < 2.6.27 */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to