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

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

hal/powerpc: fix up for kernel 3.5 series

---

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

diff --git a/include/asm-powerpc/wrappers.h b/include/asm-powerpc/wrappers.h
index 15dda13..0ef5560 100644
--- a/include/asm-powerpc/wrappers.h
+++ b/include/asm-powerpc/wrappers.h
@@ -25,8 +25,7 @@
 #endif
 
 #include <linux/version.h>
-
-#define wrap_strncpy_from_user(dstP, srcP, n)  __strncpy_from_user(dstP, srcP, 
n)
+#include <asm/uaccess.h>
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 
@@ -204,4 +203,10 @@ typedef irq_handler_t rthal_irq_host_handler_t;
 #define of_unregister_platform_driver platform_driver_unregister
 #endif
 
+#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