[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <173012211371.1442.12715311796066756881.tip-bot2@tip-bot2>
Date: Mon, 28 Oct 2024 13:28:33 -0000
From: "tip-bot2 for Christian Loehle" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: kernel test robot <lkp@...el.com>,
Christian Loehle <christian.loehle@....com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: sched/core] sched/uclamp: Fix unnused variable warning
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 23f1178ad706a1aa69ac3dfaa6559f1fb876c14e
Gitweb: https://git.kernel.org/tip/23f1178ad706a1aa69ac3dfaa6559f1fb876c14e
Author: Christian Loehle <christian.loehle@....com>
AuthorDate: Fri, 25 Oct 2024 11:53:17 +01:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Sat, 26 Oct 2024 09:28:37 +02:00
sched/uclamp: Fix unnused variable warning
uclamp_mutex is only used for CONFIG_SYSCTL or
CONFIG_UCLAMP_TASK_GROUP so declare it __maybe_unused.
Closes: https://lore.kernel.org/oe-kbuild-all/202410060258.bPl2ZoUo-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202410250459.EJe6PJI5-lkp@intel.com/
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: Christian Loehle <christian.loehle@....com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Link: https://lkml.kernel.org/r/a1e9c342-01c9-44f0-a789-2c908e57942b@arm.com
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 114adac..9bad282 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1399,7 +1399,7 @@ void set_load_weight(struct task_struct *p, bool update_load)
* requests are serialized using a mutex to reduce the risk of conflicting
* updates or API abuses.
*/
-static DEFINE_MUTEX(uclamp_mutex);
+static __maybe_unused DEFINE_MUTEX(uclamp_mutex);
/* Max allowed minimum utilization */
static unsigned int __maybe_unused sysctl_sched_uclamp_util_min = SCHED_CAPACITY_SCALE;
Powered by blists - more mailing lists