Commit 87d1fda5e2ff6527740604a7918fc273b6f9ae13

Authored by Richard A. Holden III
Committed by Linus Torvalds
1 parent 1579c3a15c

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: 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>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -11,7 +11,9 @@
11 11  
12 12 #include "coda_int.h"
13 13  
  14 +#ifdef CONFIG_SYSCTL
14 15 static struct ctl_table_header *fs_table_header;
  16 +#endif
15 17  
16 18 static ctl_table coda_table[] = {
17 19 {
... ... @@ -41,6 +43,7 @@
41 43 {}
42 44 };
43 45  
  46 +#ifdef CONFIG_SYSCTL
44 47 static ctl_table fs_table[] = {
45 48 {
46 49 .ctl_name = CTL_UNNUMBERED,
... ... @@ -50,7 +53,7 @@
50 53 },
51 54 {}
52 55 };
53   -
  56 +#endif
54 57  
55 58 void coda_sysctl_init(void)
56 59 {