* [linux-de:tip/sched/core_dl_fix_dl_cap_aw 4/5] kernel/sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared; did you mean 'arch_scale_cpu_capacity'?
@ 2020-02-09 23:16 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-09 23:16 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5738 bytes --]
tree: git://linux-arm.org/linux-de.git tip/sched/core_dl_fix_dl_cap_aw
head: 5f50571676da5c98ea40e9eb008e85be2e2d177d
commit: f23df27535d751f761ec7593b8d6311f8385b990 [4/5] sched/deadline: Make DL capacity-aware
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout f23df27535d751f761ec7593b8d6311f8385b990
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/current.h:5:0,
from include/linux/sched.h:12,
from kernel/sched/sched.h:5,
from kernel/sched/deadline.c:18:
kernel/sched/deadline.c: In function 'dl_task_fits_capacity':
>> kernel/sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared (first use in this function); did you mean 'arch_scale_cpu_capacity'?
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
#define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
^~~~~~~~~~~~~~~~~~
>> kernel/sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/deadline.c:660:31: note: each undeclared identifier is reported only once for each function it appears in
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
#define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
^~~~~~~~~~~~~~~~~~
>> kernel/sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/include/asm/current.h:5:0,
from include/linux/sched.h:12,
from kernel//sched/sched.h:5,
from kernel//sched/deadline.c:18:
kernel//sched/deadline.c: In function 'dl_task_fits_capacity':
kernel//sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared (first use in this function); did you mean 'arch_scale_cpu_capacity'?
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
#define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
^~~~~~~~~~~~~~~~~~
kernel//sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^~~~~~~~~~~~~~~~~~~~~~
kernel//sched/deadline.c:660:31: note: each undeclared identifier is reported only once for each function it appears in
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
#define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
^~~~~~~~~~~~~~~~~~
kernel//sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
if (!static_branch_unlikely(&sched_asym_cpucapacity))
^~~~~~~~~~~~~~~~~~~~~~
vim +660 kernel/sched/deadline.c
642
643 /*
644 * Verify the fitness of task @p to run on @cpu taking into account the
645 * CPU original capacity and the runtime/deadline ratio of the task.
646 *
647 * This check is only important for heterogeneous systems where CPU
648 * original capacity can be less than SCHED_CAPACITY_SCALE. For
649 * non-heterogeneous system this function will always return true.
650 *
651 * The function will return true if the CPU original capacity of the
652 * @cpu scaled by SCHED_CAPACITY_SCALE >= runtime/deadline ratio of the
653 * task and false otherwise.
654 */
655 static inline bool dl_task_fits_capacity(struct task_struct *p, int cpu)
656 {
657 u64 deadline, runtime;
658 unsigned long cap;
659
> 660 if (!static_branch_unlikely(&sched_asym_cpucapacity))
661 return true;
662
663 cap = arch_scale_cpu_capacity(cpu);
664 deadline = p->dl.dl_deadline;
665 runtime = p->dl.dl_runtime;
666
667 return cap_scale(deadline, cap) >= runtime;
668 }
669
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7283 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-09 23:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-09 23:16 [linux-de:tip/sched/core_dl_fix_dl_cap_aw 4/5] kernel/sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared; did you mean 'arch_scale_cpu_capacity'? kbuild test robot
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.