Commit 87d1fda5 authored by Richard A. Holden III's avatar Richard A. Holden III Committed by Linus Torvalds

coda: fix fs/coda/sysctl.c build warnings when !CONFIG_SYSCTL

Fix
fs/coda/sysctl.c:14: warning: 'fs_table_header' defined but not used
fs/coda/sysctl.c:44: warning: 'fs_table' defined but not used

these are only used when CONFIG_SYSCTL is defined.
Signed-off-by: default avatarRichard A. Holden III <aciddeath@gmail.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1579c3a1
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
#include "coda_int.h" #include "coda_int.h"
#ifdef CONFIG_SYSCTL
static struct ctl_table_header *fs_table_header; static struct ctl_table_header *fs_table_header;
#endif
static ctl_table coda_table[] = { static ctl_table coda_table[] = {
{ {
...@@ -41,6 +43,7 @@ static ctl_table coda_table[] = { ...@@ -41,6 +43,7 @@ static ctl_table coda_table[] = {
{} {}
}; };
#ifdef CONFIG_SYSCTL
static ctl_table fs_table[] = { static ctl_table fs_table[] = {
{ {
.ctl_name = CTL_UNNUMBERED, .ctl_name = CTL_UNNUMBERED,
...@@ -50,7 +53,7 @@ static ctl_table fs_table[] = { ...@@ -50,7 +53,7 @@ static ctl_table fs_table[] = {
}, },
{} {}
}; };
#endif
void coda_sysctl_init(void) void coda_sysctl_init(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment