From 6fd4f5d11cd40d44e0f45f762ba1bcaaab36e9e9 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Thu, 16 May 2013 01:23:28 -0700 Subject: [PATCH] backports: add PDE_DATA() case when CONFIG_PROC_FS is disabled This was missing. Signed-off-by: Luis R. Rodriguez Signed-off-by: Johannes Berg --- backport/backport-include/linux/proc_fs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backport/backport-include/linux/proc_fs.h b/backport/backport-include/linux/proc_fs.h index 5a1bec173441..22a7b5481762 100644 --- a/backport/backport-include/linux/proc_fs.h +++ b/backport/backport-include/linux/proc_fs.h @@ -4,6 +4,7 @@ #include #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 */ -- 2.30.2