Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq
       [not found] <20261129184052.15594-4-qyousef@layalina.io>
@ 2026-11-29 23:03 ` kernel test robot
  2026-11-29 23:42   ` Qais Yousef
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-11-29 23:03 UTC (permalink / raw)
  To: Qais Yousef, Ingo Molnar, Vincent Guittot
  Cc: llvm, oe-kbuild-all, Christian Loehle, Dietmar Eggemann,
	Steven Rostedt, John Stultz, linux-kernel, Kayra Cizmeci,
	Qais Yousef, Wei Wang

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.


vim +/task_is_throttled +7948 kernel/sched/fair.c

  7942	
  7943	static bool account_cfs_rq_runtime(struct cfs_rq *cfs_rq, u64 delta_exec) { return false; }
  7944	static void check_enqueue_throttle(struct cfs_rq *cfs_rq) {}
  7945	static inline void sync_throttle(struct task_group *tg, int cpu) {}
  7946	static __always_inline void return_cfs_rq_runtime(struct cfs_rq *cfs_rq) {}
  7947	static void task_throttle_setup_work(struct task_struct *p) {}
> 7948	bool task_is_throttled(struct task_struct *p) { return false; }
  7949	static void dequeue_throttled_task(struct task_struct *p, int flags) {}
  7950	static bool enqueue_throttled_task(struct task_struct *p) { return false; }
  7951	static void record_throttle_clock(struct cfs_rq *cfs_rq) {}
  7952	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq
  2026-11-29 23:03 ` [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq kernel test robot
@ 2026-11-29 23:42   ` Qais Yousef
  0 siblings, 0 replies; 2+ messages in thread
From: Qais Yousef @ 2026-11-29 23:42 UTC (permalink / raw)
  To: kernel test robot
  Cc: Ingo Molnar, Vincent Guittot, llvm, oe-kbuild-all,
	Christian Loehle, Dietmar Eggemann, Steven Rostedt, John Stultz,
	linux-kernel, Kayra Cizmeci, Wei Wang

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 */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-29 23:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261129184052.15594-4-qyousef@layalina.io>
2026-11-29 23:03 ` [PATCH v9 3/3] sched/uclamp: Fix race condition leading to imbalanced uclamp_rq kernel test robot
2026-11-29 23:42   ` Qais Yousef

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox