]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: avoid warning when CONFIG_SYSCTL undefined
authorKees Cook <keescook@chromium.org>
Thu, 1 May 2014 21:15:02 +0000 (14:15 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 May 2014 21:54:52 +0000 (17:54 -0400)
commita12d026ab60e9f01e77210dc4196675384d9031a
treec4eb149d9fa1e891e2653d8d077d8a0b49cc7980
parentbdf3a064938e09ceaf25b7312b60ca740819c778
lockd: avoid warning when CONFIG_SYSCTL undefined

When building without CONFIG_SYSCTL, the compiler saw an unused
label. This moves the label into the #ifdef it is used under.

fs/lockd/svc.c: In function ‘init_nlm’:
fs/lockd/svc.c:626:1: warning: label ‘err_sysctl’ defined but not used [-Wunused-label]

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c