From: Arnd Bergmann Date: Mon, 29 Sep 2014 12:47:45 +0000 (+0200) Subject: staging/lustre/lvfs: fix building without CONFIG_PROC_FS X-Git-Tag: fixes-for-v3.18-merge-window~15^2~102 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=372d5b5607074dc8fa6c495f56a4ae3e9a300f79;p=pandora-kernel.git staging/lustre/lvfs: fix building without CONFIG_PROC_FS Patch "staging/lustre/lvfs: remove the lvfs layer" moved some code around that was previously only built when CONFIG_PROC_FS was set, which now causes an invalid access to the obd_memory variable: ERROR: "obd_memory" [drivers/staging/lustre/lustre/obdclass/obdclass.ko] undefined! This fixes it by using adding a compile-time check around the access. Signed-off-by: Arnd Bergmann Fixes: fdedd94509fd ("staging/lustre/lvfs: remove the lvfs layer") Cc: James Simmons Cc: Mikhail Pershin Cc: John L. Hammond Cc: Jian Yu Cc: Bob Glossman Cc: Oleg Drokin Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed