Skip to content

Commit 87d1fda

Browse files
Richard A. Holden IIItorvalds
authored andcommitted
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>
1 parent 1579c3a commit 87d1fda

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎fs/coda/sysctl.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
#include "coda_int.h"
1313

14+
#ifdef CONFIG_SYSCTL
1415
static struct ctl_table_header *fs_table_header;
16+
#endif
1517

1618
static ctl_table coda_table[] = {
1719
{
@@ -41,6 +43,7 @@ static ctl_table coda_table[] = {
4143
{}
4244
};
4345

46+
#ifdef CONFIG_SYSCTL
4447
static ctl_table fs_table[] = {
4548
{
4649
.ctl_name = CTL_UNNUMBERED,
@@ -50,7 +53,7 @@ static ctl_table fs_table[] = {
5053
},
5154
{}
5255
};
53-
56+
#endif
5457

5558
void coda_sysctl_init(void)
5659
{

0 commit comments

Comments
 (0)