* [android-common:mirror-chromeos-5.10-arcvm 12/12] kernel/sched/rt.c:982:43: warning: format specifies type 'long' but the argument has type 'u64' (aka 'unsigned long long')
@ 2024-05-08 13:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-08 13:20 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head: 60159db699f14e547ce5ede2a7bad9b99e24cd3f
commit: 60159db699f14e547ce5ede2a7bad9b99e24cd3f [12/12] CHROMIUM: x86: rt: Avoid throttling over host suspend.
config: i386-buildonly-randconfig-002-20240508 (https://download.01.org/0day-ci/archive/20240508/202405082144.cX4OuwUT-lkp@intel.com/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240508/202405082144.cX4OuwUT-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/202405082144.cX4OuwUT-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/sched/rt.c:6:
kernel/sched/sched.h:1448:15: warning: cast from 'void (*)(struct rq *)' to 'void (*)(struct callback_head *)' converts to incompatible function type [-Wcast-function-type-strict]
1448 | head->func = (void (*)(struct callback_head *))func;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/rt.c:260:6: warning: no previous prototype for function 'free_rt_sched_group' [-Wmissing-prototypes]
260 | void free_rt_sched_group(struct task_group *tg) { }
| ^
kernel/sched/rt.c:260:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
260 | void free_rt_sched_group(struct task_group *tg) { }
| ^
| static
kernel/sched/rt.c:262:5: warning: no previous prototype for function 'alloc_rt_sched_group' [-Wmissing-prototypes]
262 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
| ^
kernel/sched/rt.c:262:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
262 | int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
| ^
| static
kernel/sched/rt.c:675:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
675 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^
kernel/sched/rt.c:675:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
675 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^
| static
>> kernel/sched/rt.c:982:43: warning: format specifies type 'long' but the argument has type 'u64' (aka 'unsigned long long') [-Wformat]
982 | "(%ld)\n", rq_of_rt_rq(rt_rq)->cpu, rt_rq->rt_time);
| ~~~ ^~~~~~~~~~~~~~
| %llu
include/linux/printk.h:460:26: note: expanded from macro 'printk_deferred_once'
460 | printk_deferred(fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
5 warnings generated.
vim +982 kernel/sched/rt.c
6f505b16425a51 kernel/sched_rt.c Peter Zijlstra 2008-01-25 955
9f0c1e560c4332 kernel/sched_rt.c Peter Zijlstra 2008-02-13 956 static int sched_rt_runtime_exceeded(struct rt_rq *rt_rq)
6f505b16425a51 kernel/sched_rt.c Peter Zijlstra 2008-01-25 957 {
9f0c1e560c4332 kernel/sched_rt.c Peter Zijlstra 2008-02-13 958 u64 runtime = sched_rt_runtime(rt_rq);
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 959
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 960 if (rt_rq->rt_throttled)
23b0fdfc9299b1 kernel/sched_rt.c Peter Zijlstra 2008-02-13 961 return rt_rq_throttled(rt_rq);
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 962
5b680fd61388ab kernel/sched/rt.c Shan Hai 2011-11-29 963 if (runtime >= sched_rt_period(rt_rq))
ac086bc22997a2 kernel/sched_rt.c Peter Zijlstra 2008-04-19 964 return 0;
ac086bc22997a2 kernel/sched_rt.c Peter Zijlstra 2008-04-19 965
7def2be1dc6799 kernel/sched_rt.c Peter Zijlstra 2008-06-05 966 balance_runtime(rt_rq);
ac086bc22997a2 kernel/sched_rt.c Peter Zijlstra 2008-04-19 967 runtime = sched_rt_runtime(rt_rq);
7def2be1dc6799 kernel/sched_rt.c Peter Zijlstra 2008-06-05 968 if (runtime == RUNTIME_INF)
7def2be1dc6799 kernel/sched_rt.c Peter Zijlstra 2008-06-05 969 return 0;
ac086bc22997a2 kernel/sched_rt.c Peter Zijlstra 2008-04-19 970
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 971 /*
60159db699f14e kernel/sched/rt.c Suleiman Souhlal 2024-05-07 972 * XXX Temporary workaround for b/307775867 and b/336912980.
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 973 * We think we ran for this long because the host suspended while we
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 974 * were running, so just pretend we didn't run instead of throttling
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 975 * for a long time.
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 976 * The "5" was chosen so that it would be highly unlikely for this to
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 977 * happen in normal operation, while being small enough to be able to
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 978 * mitigate issues for shorter suspends.
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 979 */
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 980 if (unlikely(runtime > 0 && rt_rq->rt_time >= 5 * runtime)) {
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 981 printk_deferred_once("suspected host suspend. cpu %d rt_time "
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 @982 "(%ld)\n", rq_of_rt_rq(rt_rq)->cpu, rt_rq->rt_time);
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 983 rt_rq->rt_time = 0;
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 984 }
4f653d6975381f kernel/sched/rt.c Suleiman Souhlal 2024-03-16 985
9f0c1e560c4332 kernel/sched_rt.c Peter Zijlstra 2008-02-13 986 if (rt_rq->rt_time > runtime) {
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 987 struct rt_bandwidth *rt_b = sched_rt_bandwidth(rt_rq);
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 988
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 989 /*
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 990 * Don't actually throttle groups that have no runtime assigned
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 991 * but accrue some time due to boosting.
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 992 */
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 993 if (likely(rt_b->rt_runtime)) {
6f505b16425a51 kernel/sched_rt.c Peter Zijlstra 2008-01-25 994 rt_rq->rt_throttled = 1;
c224815dac9c73 kernel/sched/rt.c John Stultz 2014-06-04 995 printk_deferred_once("sched: RT throttling activated\n");
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 996
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 997 trace_android_vh_dump_throttled_rt_tasks(
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 998 raw_smp_processor_id(),
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 999 rq_clock(rq_of_rt_rq(rt_rq)),
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1000 sched_rt_period(rt_rq),
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1001 runtime,
bf3d991a7daad2 kernel/sched/rt.c Sai Harshini Nimmala 2020-11-02 1002 hrtimer_get_expires_ns(&rt_b->rt_period_timer));
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1003 } else {
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1004 /*
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1005 * In case we did anyway, make it go away,
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1006 * replenishment is a joke, since it will replenish us
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1007 * with exactly 0 ns.
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1008 */
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1009 rt_rq->rt_time = 0;
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1010 }
7abc63b1bd412f kernel/sched/rt.c Peter Zijlstra 2011-10-18 1011
23b0fdfc9299b1 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1012 if (rt_rq_throttled(rt_rq)) {
9f0c1e560c4332 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1013 sched_rt_rq_dequeue(rt_rq);
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1014 return 1;
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1015 }
23b0fdfc9299b1 kernel/sched_rt.c Peter Zijlstra 2008-02-13 1016 }
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1017
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1018 return 0;
fa85ae2418e684 kernel/sched_rt.c Peter Zijlstra 2008-01-25 1019 }
fa85ae2418e684 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-08 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-08 13:20 [android-common:mirror-chromeos-5.10-arcvm 12/12] kernel/sched/rt.c:982:43: warning: format specifies type 'long' but the argument has type 'u64' (aka 'unsigned long long') kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).