Skip to content

Commit

Permalink
coda: fix fs/coda/sysctl.c build warnings when !CONFIG_SYSCTL
Browse files Browse the repository at this point in the history
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: Richard A. Holden III <aciddeath@gmail.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Richard A. Holden III authored and Linus Torvalds committed Jan 8, 2009
1 parent 1579c3a commit 87d1fda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/coda/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

#include "coda_int.h"

#ifdef CONFIG_SYSCTL
static struct ctl_table_header *fs_table_header;
#endif

static ctl_table coda_table[] = {
{
Expand Down Expand Up @@ -41,6 +43,7 @@ static ctl_table coda_table[] = {
{}
};

#ifdef CONFIG_SYSCTL
static ctl_table fs_table[] = {
{
.ctl_name = CTL_UNNUMBERED,
Expand All @@ -50,7 +53,7 @@ static ctl_table fs_table[] = {
},
{}
};

#endif

void coda_sysctl_init(void)
{
Expand Down

0 comments on commit 87d1fda

Please sign in to comment.