[PATCH] fix unused variable without softlock detection and highmem

From: Nikanth Karthikesan
Date: Mon Feb 23 2009 - 07:12:32 EST


When both CONFIG_DETECT_SOFTLOCKUP and CONFIG_HIGHMEM are not defined
avoid defining the constant for one fixing the 'define but not used' warning.

Signed-off-by: Nikanth Karthikesan <knikanth@xxxxxxx>

---

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c5ef44f..f172d9f 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -95,12 +95,15 @@ static int sixty = 60;
static int neg_one = -1;
#endif

+#if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM)
+static int one = 1;
+#endif
+
#if defined(CONFIG_MMU) && defined(CONFIG_FILE_LOCKING)
static int two = 2;
#endif

static int zero;
-static int one = 1;
static unsigned long one_ul = 1;
static int one_hundred = 100;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/