From: Jeff Layton Date: Thu, 29 Mar 2012 11:52:49 +0000 (-0400) Subject: nfsd: only register cld pipe notifier when CONFIG_NFSD_V4 is enabled X-Git-Tag: v3.4-rc1~40^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797a9d797f8483bb67f265c761b76dcd5a077a23;p=pandora-kernel.git nfsd: only register cld pipe notifier when CONFIG_NFSD_V4 is enabled Otherwise, we get a warning or error similar to this when building with CONFIG_NFSD_V4 disabled: ERROR: "nfsd4_cld_block" [fs/nfsd/nfsd.ko] undefined! Fix this by wrapping the calls to rpc_pipefs_notifier_register and ..._unregister in another function and providing no-op replacements when CONFIG_NFSD_V4 is disabled. Reported-by: Paul Gortmaker Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed