[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220117012317.21168-1-surenb@google.com>
Date: Sun, 16 Jan 2022 17:23:17 -0800
From: Suren Baghdasaryan <surenb@...gle.com>
To: sfr@...b.auug.org.au
Cc: akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org, linux-next@...r.kernel.org,
surenb@...gle.com
Subject: [PATCH 1/1] sysctl: Fix 'one_thousand' defined but not used warning
Fix the following warning issued when CONFIG_PERF_EVENTS is not
defined:
kernel/sysctl.c:125:12: warning: 'one_thousand' defined but not used [-Wunused-variable]
Fixes: 39c65a94cd96 ("mm/pagealloc: sysctl: change watermark_scale_factor max limit to 30%")
Reported-by: Stephen Rothwell <sfr@...b.auug.org.au>
Signed-off-by: Suren Baghdasaryan <surenb@...gle.com>
---
kernel/sysctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index ef77be575d87..81a6f2d47f77 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -122,7 +122,9 @@ static unsigned long one_ul = 1;
static unsigned long long_max = LONG_MAX;
static int one_hundred = 100;
static int two_hundred = 200;
+#ifdef CONFIG_PERF_EVENTS
static int one_thousand = 1000;
+#endif
static int three_thousand = 3000;
#ifdef CONFIG_PRINTK
static int ten_thousand = 10000;
--
2.34.1.703.g22d0c6ccf7-goog
Powered by blists - more mailing lists