diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2015-07-25 13:40:43 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2015-07-25 13:40:43 +0000 |
commit | 4b5421d51de7f566b3a62accced1140e6af45035 (patch) | |
tree | 45e5669d8eb758fc5dee521dc1f53b2f669e77b4 /package/kernel | |
parent | 96e92fdd76e88c4292b208fc2496ba90ac2c1644 (diff) | |
download | master-187ad058-4b5421d51de7f566b3a62accced1140e6af45035.tar.gz master-187ad058-4b5421d51de7f566b3a62accced1140e6af45035.tar.bz2 master-187ad058-4b5421d51de7f566b3a62accced1140e6af45035.zip |
mac80211: do not add debugfs_create_devm_seqfile() on recent kernel versions
An #ifdef for the kernel version was missing around the header of
debugfs_create_devm_seqfile() and the LINUX_BACKPORT() was also not
done.
This closes #20181
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46492 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/mac80211/patches/020-backports-do-not-add-debugfs_create_devm_seqfile-on-.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/020-backports-do-not-add-debugfs_create_devm_seqfile-on-.patch b/package/kernel/mac80211/patches/020-backports-do-not-add-debugfs_create_devm_seqfile-on-.patch new file mode 100644 index 0000000000..97f678cf37 --- /dev/null +++ b/package/kernel/mac80211/patches/020-backports-do-not-add-debugfs_create_devm_seqfile-on-.patch @@ -0,0 +1,33 @@ +From e15e9231e7a9f81f5264d294fd3fd96a20d92516 Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens <hauke@hauke-m.de> +Date: Sat, 25 Jul 2015 15:19:17 +0200 +Subject: [PATCH 3/3] backports: do not add debugfs_create_devm_seqfile() on + recent kernel versions + +An #ifdef for the kernel version was missing around the header of +debugfs_create_devm_seqfile() and the LINUX_BACKPORT() was also not +done. + +Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +--- + backport/backport-include/linux/debugfs.h | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/backport-include/linux/debugfs.h ++++ b/backport-include/linux/debugfs.h +@@ -5,6 +5,8 @@ + #include <linux/device.h> + #include <generated/utsrelease.h> + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) ++#define debugfs_create_devm_seqfile LINUX_BACKPORT(debugfs_create_devm_seqfile) + #if defined(CONFIG_DEBUG_FS) + struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name, + struct dentry *parent, +@@ -20,5 +22,6 @@ static inline struct dentry *debugfs_cre + return ERR_PTR(-ENODEV); + } + #endif /* CONFIG_DEBUG_FS */ ++#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */ + + #endif /* __BACKPORT_DEBUGFS_H_ */ |