Return-path: Received: from mail-pa0-f41.google.com ([209.85.220.41]:35013 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758Ab3EPIXo (ORCPT ); Thu, 16 May 2013 04:23:44 -0400 Received: by mail-pa0-f41.google.com with SMTP id rl6so2311366pac.28 for ; Thu, 16 May 2013 01:23:44 -0700 (PDT) From: "Luis R. Rodriguez" To: backports@vger.kernel.org Cc: "Luis R. Rodriguez" Subject: [PATCH v2 2/4] backports: add PDE_DATA() case when CONFIG_PROC_FS is disabled Date: Thu, 16 May 2013 01:23:28 -0700 Message-Id: <1368692610-24662-3-git-send-email-mcgrof@do-not-panic.com> (sfid-20130516_102346_551036_2D7F8B87) In-Reply-To: <1368692610-24662-1-git-send-email-mcgrof@do-not-panic.com> References: <1368692610-24662-1-git-send-email-mcgrof@do-not-panic.com> Sender: backports-owner@vger.kernel.org List-ID: From: "Luis R. Rodriguez" This was missing. Signed-off-by: Luis R. Rodriguez --- 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 5a1bec1..22a7b54 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 */ -- 1.7.10.4