relayd: update to the latest version, fixes some issues found by Coverity
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 020-backports-do-not-add-debugfs_create_devm_seqfile-on-.patch
1 From e15e9231e7a9f81f5264d294fd3fd96a20d92516 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sat, 25 Jul 2015 15:19:17 +0200
4 Subject: [PATCH 3/3] backports: do not add debugfs_create_devm_seqfile() on
5 recent kernel versions
6
7 An #ifdef for the kernel version was missing around the header of
8 debugfs_create_devm_seqfile() and the LINUX_BACKPORT() was also not
9 done.
10
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 ---
13 backport/backport-include/linux/debugfs.h | 3 +++
14 1 file changed, 3 insertions(+)
15
16 --- a/backport-include/linux/debugfs.h
17 +++ b/backport-include/linux/debugfs.h
18 @@ -5,6 +5,8 @@
19 #include <linux/device.h>
20 #include <generated/utsrelease.h>
21
22 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
23 +#define debugfs_create_devm_seqfile LINUX_BACKPORT(debugfs_create_devm_seqfile)
24 #if defined(CONFIG_DEBUG_FS)
25 struct dentry *debugfs_create_devm_seqfile(struct device *dev, const char *name,
26 struct dentry *parent,
27 @@ -20,5 +22,6 @@ static inline struct dentry *debugfs_cre
28 return ERR_PTR(-ENODEV);
29 }
30 #endif /* CONFIG_DEBUG_FS */
31 +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */
32
33 #endif /* __BACKPORT_DEBUGFS_H_ */