tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 45baa007ba13bc516470dbd9379b2f7525a087e1
commit: 1727d28632e4f124f314bc19ad4f40ec183fe60e [52/59] FROMLIST: sched/fair: core wide
vruntime comparison
config: um-allnoconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 1727d28632e4f124f314bc19ad4f40ec183fe60e
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/asm-generic/bug.h:5,
from ./arch/um/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from kernel/sched/sched.h:5,
from kernel/sched/fair.c:23:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:31:19: warning: comparison of unsigned expression >= 0 is
always true [-Wtype-limits]
31 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~
include/linux/compiler.h:328:9: note: in definition of macro
'__compiletime_assert'
328 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:348:2: note: in expansion of macro '_compiletime_assert'
348 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
45 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:69:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
69 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:31:2: note: in expansion of macro 'BUILD_BUG_ON'
31 | BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
| ^~~~~~~~~~~~
In file included from include/linux/memremap.h:7,
from include/linux/mm.h:27,
from include/linux/cpuset.h:17,
from kernel/sched/sched.h:44,
from kernel/sched/fair.c:23:
include/linux/mm.h: In function 'pgtable_init':
arch/um/include/asm/pgtable.h:35:33: warning: suggest braces around empty body in
'do' statement [-Wempty-body]
35 | #define pgtable_cache_init() do ; while (0)
| ^
include/linux/mm.h:1932:2: note: in expansion of macro 'pgtable_cache_init'
1932 | pgtable_cache_init();
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: In function 'cfs_prio_less':
> kernel/sched/fair.c:539:11: error: implicit declaration of
function 'is_same_group' [-Werror=implicit-function-declaration]
539 |
while (!is_same_group(sea, seb)) {
| ^~~~~~~~~~~~~
> kernel/sched/fair.c:540:23: error: 'struct sched_entity'
has no member named 'depth'
540 | int sea_depth = sea->depth;
| ^~
kernel/sched/fair.c:541:23: error: 'struct sched_entity' has no member named
'depth'
541 | int seb_depth = seb->depth;
| ^~
> kernel/sched/fair.c:554:12: error: 'struct sched_entity'
has no member named 'parent'
554 | while (sea->parent)
| ^~
kernel/sched/fair.c:555:12: error: 'struct sched_entity' has no member named
'parent'
555 | sea = sea->parent;
| ^~
kernel/sched/fair.c:556:12: error: 'struct sched_entity' has no member named
'parent'
556 | while (seb->parent)
| ^~
kernel/sched/fair.c:557:12: error: 'struct sched_entity' has no member named
'parent'
557 | seb = seb->parent;
| ^~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:5214:6: warning: no previous prototype for
'init_cfs_bandwidth' [-Wmissing-prototypes]
5214 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11366:6: warning: no previous prototype for
'free_fair_sched_group' [-Wmissing-prototypes]
11366 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11368:5: warning: no previous prototype for
'alloc_fair_sched_group' [-Wmissing-prototypes]
11368 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11373:6: warning: no previous prototype for
'online_fair_sched_group' [-Wmissing-prototypes]
11373 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11375:6: warning: no previous prototype for
'unregister_fair_sched_group' [-Wmissing-prototypes]
11375 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:7613:1: warning: 'pick_task_fair' defined but not used
[-Wunused-function]
7613 | pick_task_fair(struct rq *rq)
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/is_same_group +539 kernel/sched/fair.c
528
529 bool cfs_prio_less(struct task_struct *a, struct task_struct *b)
530 {
531 struct sched_entity *sea = &a->se;
532 struct sched_entity *seb = &b->se;
533 bool samecpu = task_cpu(a) == task_cpu(b);
534 struct task_struct *p;
535 s64 delta;
536
537 if (samecpu) {
538 /* vruntime is per cfs_rq */
539 while (!is_same_group(sea, seb)) {
540 int sea_depth = sea->depth;
541 int seb_depth = seb->depth;
542
543 if (sea_depth >= seb_depth)
544 sea = parent_entity(sea);
545 if (sea_depth <= seb_depth)
546 seb = parent_entity(seb);
547 }
548
549 delta = (s64)(sea->vruntime - seb->vruntime);
550 goto out;
551 }
552
553 /* crosscpu: compare root level se's vruntime to decide priority */
554 while (sea->parent)
555 sea = sea->parent;
556 while (seb->parent)
557 seb = seb->parent;
558 delta = (s64)(sea->vruntime - seb->vruntime);
559
560 out:
561 p = delta > 0 ? b : a;
562 trace_printk("picked %s/%d %s: %Ld %Ld %Ld\n", p->comm, p->pid,
563 samecpu ? "samecpu" : "crosscpu",
564 sea->vruntime, seb->vruntime, delta);
565
566 return delta > 0;
567 }
568
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org