summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-05-16 01:23:28 -0700
committerJohannes Berg <johannes.berg@intel.com>2013-05-17 14:05:47 +0200
commit6fd4f5d11cd40d44e0f45f762ba1bcaaab36e9e9 (patch)
tree86c070e911023b07d557ad7e0e8c91ecf235d0bb
parent1caa4eac149c68c0ba1fa0ee4b2cff58c15fc272 (diff)
backports: add PDE_DATA() case when CONFIG_PROC_FS is disabled
This was missing. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--backport/backport-include/linux/proc_fs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/backport/backport-include/linux/proc_fs.h b/backport/backport-include/linux/proc_fs.h
index 5a1bec17..22a7b548 100644
--- a/backport/backport-include/linux/proc_fs.h
+++ b/backport/backport-include/linux/proc_fs.h
@@ -4,6 +4,7 @@
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
+#ifdef CONFIG_PROC_FS
/*
* backport of:
* procfs: new helper - PDE_DATA(inode)
@@ -12,6 +13,8 @@ static inline void *PDE_DATA(const struct inode *inode)
{
return PROC_I(inode)->pde->data;
}
+#else
+static inline void *PDE_DATA(const struct inode *inode) {BUG(); return NULL;}
#endif
#endif /* __BACKPORT_PROC_FS_H */