[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200902231739.51863.knikanth@suse.de>
Date: Mon, 23 Feb 2009 17:39:51 +0530
From: Nikanth Karthikesan <knikanth@...e.de>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...e.hu>,
linux-kernel@...r.kernel.org
Subject: [PATCH] fix unused variable without softlock detection and highmem
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@...e.de>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists