* [PATCH] Fix fs/coda/sysctl.c build warnings when !CONFIG_SYSCTL
@ 2008-11-04 8:27 Richard A. Holden III
0 siblings, 0 replies; only message in thread
From: Richard A. Holden III @ 2008-11-04 8:27 UTC (permalink / raw)
To: linux-next; +Cc: linux-kernel, Jan Harkes, coda, codalist
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>
---
fs/coda/sysctl.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index 81b7771..43c96ce 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -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[] = {
{
@@ -41,6 +43,7 @@ static ctl_table coda_table[] = {
{}
};
+#ifdef CONFIG_SYSCTL
static ctl_table fs_table[] = {
{
.ctl_name = CTL_UNNUMBERED,
@@ -50,7 +53,7 @@ static ctl_table fs_table[] = {
},
{}
};
-
+#endif
void coda_sysctl_init(void)
{
--
1.5.6.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-04 7:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 8:27 [PATCH] Fix fs/coda/sysctl.c build warnings when !CONFIG_SYSCTL Richard A. Holden III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.