From: Qais Yousef <qyousef@layalina.io>
To: kernel test robot <lkp@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>,
Vincent Guittot <vincent.guittot@linaro.org>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Christian Loehle <christian.loehle@arm.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
John Stultz <jstultz@google.com>,
linux-kernel@vger.kernel.org,
Kayra Cizmeci <kayracizmeci@gmail.com>,
Wei Wang <wvw@google.com>
Subject: Re: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq
Date: Sun, 29 Nov 2026 23:42:18 +0000 [thread overview]
Message-ID: <awy2AZTSruULXO-e@aerith> (raw)
In-Reply-To: <20261130065142.jL2yjqPL-lkp@intel.com>
On 11/30/26 07:03, kernel test robot wrote:
> Hi Qais,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on tip/sched/core]
> [also build test WARNING on tip/master peterz-queue/sched/core linus/master v7.4-rc4 next-20261127]
> [cannot apply to tip/auto-latest]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Qais-Yousef/sched-uclamp-Use-wrappers-instead-of-open-coding-UCLAMP_FLAG_IDLE/20261129-184050
> base: tip/sched/core
> patch link: https://lore.kernel.org/r/20261129184052.15594-4-qyousef%40layalina.io
> patch subject: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq
> config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20261130/20261130065142.jL2yjqPL-lkp@intel.com/config)
> compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 04597ff5c4eda9d66da39a536aa26a7bab2fb2dd)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130065142.jL2yjqPL-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/20261130065142.jL2yjqPL-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> kernel/sched/fair.c:7948:6: warning: no previous prototype for function 'task_is_throttled' [-Wmissing-prototypes]
> 7948 | bool task_is_throttled(struct task_struct *p) { return false; }
> | ^
> kernel/sched/fair.c:7948:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> 7948 | bool task_is_throttled(struct task_struct *p) { return false; }
> | ^
> | static
> 1 warning generated.
>
This was also caught by Sashiko. Below should fix it.
--->8---
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 479707e252317..ca1c3e2fce9ae 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7945,7 +7945,6 @@ static void check_enqueue_throttle(struct cfs_rq *cfs_rq) {}
static inline void sync_throttle(struct task_group *tg, int cpu) {}
static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq) {}
static void task_throttle_setup_work(struct task_struct *p) {}
-bool task_is_throttled(struct task_struct *p) { return false; }
static void dequeue_throttled_task(struct task_struct *p, int flags) {}
static bool enqueue_throttled_task(struct task_struct *p) { return false; }
static void record_throttle_clock(struct cfs_rq *cfs_rq) {}
@@ -7987,6 +7986,11 @@ bool cfs_task_bw_constrained(struct task_struct *p)
{
return false;
}
+
+bool task_is_throttled(struct task_struct *p)
+{
+ return false;
+}
#endif
#endif /* !CONFIG_CFS_BANDWIDTH */
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 40a39f0a2731b..ca2fefb0450e3 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -623,6 +623,7 @@ static inline int sched_group_set_idle(struct task_group *tg, long idle) { retur
struct cfs_bandwidth { };
static inline bool cfs_task_bw_constrained(struct task_struct *p) { return false; }
+static inline bool task_is_throttled(struct task_struct *p) { return false; }
#endif /* !CONFIG_CGROUP_SCHED */
next prev parent reply other threads:[~2026-11-29 23:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 18:40 [PATCH v9 0/3] Fix uclamp race against non atomic static key enable Qais Yousef
2026-11-29 18:40 ` [PATCH v9 1/3] sched/uclamp: Use wrappers instead of open coding UCLAMP_FLAG_IDLE Qais Yousef
2026-11-30 0:06 ` Christian Loehle
2026-11-29 18:40 ` [PATCH v9 2/3] sched/uclamp: Move uclamp_rq_{inc, dec}() from core.c Qais Yousef
2026-11-29 18:40 ` [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq Qais Yousef
2026-11-29 23:03 ` kernel test robot
2026-11-29 23:42 ` Qais Yousef [this message]
2026-11-29 23:24 ` kernel test robot
2026-11-30 2:42 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awy2AZTSruULXO-e@aerith \
--to=qyousef@layalina.io \
--cc=christian.loehle@arm.com \
--cc=dietmar.eggemann@arm.com \
--cc=jstultz@google.com \
--cc=kayracizmeci@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=mingo@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rostedt@goodmis.org \
--cc=vincent.guittot@linaro.org \
--cc=wvw@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.