staging/lustre: fix defined not used warning
authorPeng Tao <bergwolf@gmail.com>
Tue, 3 Dec 2013 14:42:04 +0000 (22:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 16:57:25 +0000 (08:57 -0800)
commit62494681cdee38e7d2d6e3b485a3c8dc2a5f9ba9
treee5abb2cd4e58cbbc0f3e0fbbe69bba1a89f17c29
parentc7c5da015a4e142c4c7c77572a1e756136f7564b
staging/lustre: fix defined not used warning

register_sysctl_table/unregister_sysctl_table are defined
regardless of CONFIG_SYSCTL true or false. so we don't need
to surround them with #ifdef CONFIG_SYSCTL. Besides, current
code got build warnings when CONFIG_SYSCTL is not set:
drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c:368:20: warning:
‘lnet_table’ defined but not used [-Wunused-variable]

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/router_proc.c
drivers/staging/lustre/lustre/libcfs/linux/linux-proc.c