Module: xenomai-rpm
Branch: queue/vfile
Commit: 6d1e1deaa15d3d9bc6dd9b5d007d940d2fcbe197
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=6d1e1deaa15d3d9bc6dd9b5d007d940d2fcbe197

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Apr 29 19:52:53 2010 +0200

wrappers: introduce file-to-inode converter

---

 include/asm-generic/wrappers.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index a7349db..f67f422 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -37,6 +37,7 @@
 #include <linux/sched.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
+#include <linux/slab.h>
 #include <linux/moduleparam.h> /* Use the backport. */
 #include <asm/atomic.h>
 
@@ -335,6 +336,8 @@ unsigned long find_next_bit(const unsigned long *addr,
 
 #define mmiowb()       barrier()
 
+#define wrap_f_inode(file)     ((file)->f_dentry->d_inode)
+
 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) */
 
 #define compat_module_param_array(name, type, count, perm) \
@@ -456,6 +459,8 @@ unsigned long find_next_bit(const unsigned long *addr,
 #define DECLARE_DELAYED_WORK_NODATA(n, f) DECLARE_DELAYED_WORK(n, f)
 #endif /* >= 2.6.20 */
 
+#define wrap_f_inode(file)     ((file)->f_path.dentry->d_inode)
+
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) */
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)


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

Reply via email to