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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Aug 31 10:23:54 2012 +0200

cobalt/powerpc: fix up for kernel 3.5 series

---

 include/asm-powerpc/wrappers.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/include/asm-powerpc/wrappers.h b/include/asm-powerpc/wrappers.h
index 951cd52..24b9204 100644
--- a/include/asm-powerpc/wrappers.h
+++ b/include/asm-powerpc/wrappers.h
@@ -30,7 +30,7 @@
 #error "Linux kernel 3.0 or above required for this architecture"
 #endif
 
-#define wrap_strncpy_from_user(dstP, srcP, n)  __strncpy_from_user(dstP, srcP, 
n)
+#include <asm/uaccess.h>
 
 #define wrap_phys_mem_prot(filp,pfn,size,prot) \
   phys_mem_access_prot(filp, pfn, size, prot)
@@ -75,4 +75,10 @@
 #define of_register_platform_driver platform_driver_register
 #define of_unregister_platform_driver platform_driver_unregister
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
+#define wrap_strncpy_from_user(dstP, srcP, n)  strncpy_from_user(dstP, srcP, n)
+#else
+#define wrap_strncpy_from_user(dstP, srcP, n)  __strncpy_from_user(dstP, srcP, 
n)
+#endif
+
 #endif /* _XENO_ASM_POWERPC_WRAPPERS_H */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to