tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: d2eeef58809494b0ea811ce578163de7a2478a22
commit: cfff5c5f9c0a9b899e38ed65fb7d925d6b5a5bfa [55/62] FROMLIST: sched/core: Update core
scheduler queue when taking cpu online/offline
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
kernel/sched/rt.c:743:10: warning: Same expression on both sides of '-='.
[duplicateExpression]
want -= want;
^
kernel/sched/rt.c:727:18: warning: Local variable iter shadows outer variable
[shadowVar]
struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
^
kernel/sched/rt.c:693:15: note: Shadowed declaration
rt_rq_iter_t iter;
^
kernel/sched/rt.c:727:18: note: Shadow variable
struct rt_rq *iter = sched_rt_period_rt_rq(rt_b, i);
^
kernel/sched/rt.c:699:2: warning: Uninitialized variable: iter [uninitvar]
for_each_rt_rq(rt_rq, iter, rq) {
^
kernel/sched/rt.c:783:2: warning: Uninitialized variable: iter [uninitvar]
for_each_rt_rq(rt_rq, iter, rq) {
^
> kernel/sched/rt.c:1587:2: warning: Variable 'rt_rq' is
reassigned a value before the old one has been used. [redundantAssignment]
for_each_rt_rq(rt_rq, iter, rq) {
^
kernel/sched/rt.c:1583:0: note: Variable 'rt_rq' is reassigned a value before
the old one has been used.
struct rt_rq *rt_rq = &rq->rt;
^
kernel/sched/rt.c:1587:2: note: Variable 'rt_rq' is reassigned a value before
the old one has been used.
for_each_rt_rq(rt_rq, iter, rq) {
^
kernel/sched/rt.c:1587:2: warning: Uninitialized variable: iter [uninitvar]
for_each_rt_rq(rt_rq, iter, rq) {
^
vim +/rt_rq +1587 kernel/sched/rt.c
1575
1576 static void for_each_rt_task(struct rq *rq,
1577 void (*fn)(struct rq *rq, struct task_struct *p))
1578 {
1579 rt_rq_iter_t iter;
1580 struct rt_prio_array *array;
1581 struct list_head *queue;
1582 int i;
1583 struct rt_rq *rt_rq = &rq->rt;
1584 struct sched_rt_entity *rt_se = NULL;
1585 struct task_struct *task;
1586
1587 for_each_rt_rq(rt_rq, iter, rq) {
1588 array =
&rt_rq->active;
1589 for (i = 0; i < MAX_RT_PRIO; i++) {
1590 queue = array->queue + i;
1591 list_for_each_entry(rt_se, queue, run_list) {
1592 if (rt_entity_is_task(rt_se)) {
1593 task = rt_task_of(rt_se);
1594 fn(rq, task);
1595 }
1596 }
1597 }
1598 }
1599 }
1600
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org