Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- include/linux/compat-3.5.h | 2 -- include/linux/fs.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 include/linux/fs.h diff --git a/include/linux/compat-3.5.h b/include/linux/compat-3.5.h index 9c10a42..07a79a6 100644 --- a/include/linux/compat-3.5.h +++ b/include/linux/compat-3.5.h @@ -6,8 +6,6 @@ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) -extern int simple_open(struct inode *inode, struct file *file); - #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ #endif /* LINUX_3_5_COMPAT_H */ diff --git a/include/linux/fs.h b/include/linux/fs.h new file mode 100644 index 0000000..f0412ba --- /dev/null +++ b/include/linux/fs.h @@ -0,0 +1,14 @@ +#ifndef _COMPAT_LINUX_FS_H +#define _COMPAT_LINUX_FS_H + +#include_next <linux/fs.h> + +#include <linux/version.h> + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) + +extern int simple_open(struct inode *inode, struct file *file); + +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ + +#endif /* _COMPAT_LINUX_FS_H */ -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html