From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:mirror-chromeos-5.10-arcvm 1/1] kernel/sched/rt.c:982:50: error: 'struct rq' has no member named 'cpu'
Date: Mon, 11 May 2026 19:05:19 +0800 [thread overview]
Message-ID: <202605111830.JNRi4bU0-lkp@intel.com> (raw)
Hi Suleiman,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head: 80e99694479e5e9fe7c6230aad1327bbb9c655be
commit: 60159db699f14e547ce5ede2a7bad9b99e24cd3f [1/1] CHROMIUM: x86: rt: Avoid throttling over host suspend.
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20260511/202605111830.JNRi4bU0-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260511/202605111830.JNRi4bU0-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/202605111830.JNRi4bU0-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/sched/rt.c:260:6: warning: no previous prototype for 'free_rt_sched_group' [-Wmissing-prototypes]
260 | void free_rt_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:262:5: warning: no previous prototype for 'alloc_rt_sched_group' [-Wmissing-prototypes]
262 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:675:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
675 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:17,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/current.h:6,
from include/linux/sched.h:12,
from kernel/sched/sched.h:5,
from kernel/sched/rt.c:6:
kernel/sched/rt.c: In function 'sched_rt_runtime_exceeded':
>> kernel/sched/rt.c:982:50: error: 'struct rq' has no member named 'cpu'
982 | "(%ld)\n", rq_of_rt_rq(rt_rq)->cpu, rt_rq->rt_time);
| ^~
include/linux/printk.h:139:31: note: in definition of macro 'no_printk'
139 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
kernel/sched/rt.c:981:17: note: in expansion of macro 'printk_deferred_once'
981 | printk_deferred_once("suspected host suspend. cpu %d rt_time "
| ^~~~~~~~~~~~~~~~~~~~
vim +982 kernel/sched/rt.c
6f505b16425a512 kernel/sched_rt.c Peter Zijlstra 2008-01-25 955
9f0c1e560c43327 kernel/sched_rt.c Peter Zijlstra 2008-02-13 956 static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq)
6f505b16425a512 kernel/sched_rt.c Peter Zijlstra 2008-01-25 957 {
9f0c1e560c43327 kernel/sched_rt.c Peter Zijlstra 2008-02-13 958 u64 runtime = sched_rt_runtime(rt_rq);
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 959
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 960 if (rt_rq->rt_throttled)
23b0fdfc9299b13 kernel/sched_rt.c Peter Zijlstra 2008-02-13 961 return rt_rq_throttled(rt_rq);
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 962
5b680fd61388abb kernel/sched/rt.c Shan Hai 2011-11-29 963 if (runtime >= sched_rt_period(rt_rq))
ac086bc22997a2b kernel/sched_rt.c Peter Zijlstra 2008-04-19 964 return 0;
ac086bc22997a2b kernel/sched_rt.c Peter Zijlstra 2008-04-19 965
7def2be1dc67998 kernel/sched_rt.c Peter Zijlstra 2008-06-05 966 balance_runtime(rt_rq);
ac086bc22997a2b kernel/sched_rt.c Peter Zijlstra 2008-04-19 967 runtime = sched_rt_runtime(rt_rq);
7def2be1dc67998 kernel/sched_rt.c Peter Zijlstra 2008-06-05 968 if (runtime == RUNTIME_INF)
7def2be1dc67998 kernel/sched_rt.c Peter Zijlstra 2008-06-05 969 return 0;
ac086bc22997a2b kernel/sched_rt.c Peter Zijlstra 2008-04-19 970
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 971 /*
60159db699f14e5 kernel/sched/rt.c Suleiman Souhlal 2024-05-07 972 * XXX Temporary workaround for b/307775867 and b/336912980.
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 973 * We think we ran for this long because the host suspended while we
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 974 * were running, so just pretend we didn't run instead of throttling
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 975 * for a long time.
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 976 * The "5" was chosen so that it would be highly unlikely for this to
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 977 * happen in normal operation, while being small enough to be able to
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 978 * mitigate issues for shorter suspends.
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 979 */
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 980 if (unlikely(runtime > 0 && rt_rq->rt_time >= 5 * runtime)) {
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 981 printk_deferred_once("suspected host suspend. cpu %d rt_time "
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 @982 "(%ld)\n", rq_of_rt_rq(rt_rq)->cpu, rt_rq->rt_time);
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 983 rt_rq->rt_time = 0;
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 984 }
4f653d6975381f9 kernel/sched/rt.c Suleiman Souhlal 2024-03-16 985
9f0c1e560c43327 kernel/sched_rt.c Peter Zijlstra 2008-02-13 986 if (rt_rq->rt_time > runtime) {
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 987 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 988
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 989 /*
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 990 * Don't actually throttle groups that have no runtime assigned
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 991 * but accrue some time due to boosting.
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 992 */
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 993 if (likely(rt_b->rt_runtime)) {
6f505b16425a512 kernel/sched_rt.c Peter Zijlstra 2008-01-25 994 rt_rq->rt_throttled = 1;
c224815dac9c739 kernel/sched/rt.c John Stultz 2014-06-04 995 printk_deferred_once("sched: RT throttling activated\n");
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 996
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 997 trace_android_vh_dump_throttled_rt_tasks(
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 998 raw_smp_processor_id(),
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 999 rq_clock(rq_of_rt_rq(rt_rq)),
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1000 sched_rt_period(rt_rq),
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1001 runtime,
bf3d991a7daad26 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1002 hrtimer_get_expires_ns(&rt_b->rt_period_timer));
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1003 } else {
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1004 /*
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1005 * In case we did anyway, make it go away,
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1006 * replenishment is a joke, since it will replenish us
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1007 * with exactly 0 ns.
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1008 */
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1009 rt_rq->rt_time = 0;
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1010 }
7abc63b1bd412f7 kernel/sched/rt.c Peter Zijlstra 2011-10-18 1011
23b0fdfc9299b13 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1012 if (rt_rq_throttled(rt_rq)) {
9f0c1e560c43327 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1013 sched_rt_rq_dequeue(rt_rq);
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1014 return 1;
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1015 }
23b0fdfc9299b13 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1016 }
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1017
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1018 return 0;
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1019 }
fa85ae2418e6843 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1020
:::::: The code at line 982 was first introduced by commit
:::::: 4f653d6975381f93075754c0d2b1ec8bc37b0df8 CHROMIUM: arm64: rt: Avoid throttling over host suspend.
:::::: TO: Suleiman Souhlal <suleiman@google.com>
:::::: CC: Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-05-11 11:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 11:05 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-22 17:04 [android-common:mirror-chromeos-5.10-arcvm 1/1] kernel/sched/rt.c:982:50: error: 'struct rq' has no member named 'cpu' 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=202605111830.JNRi4bU0-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.