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: sparc64-randconfig-a001-20200210 (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.5.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout f23df27535d751f761ec7593b8d6311f8385b990 # save the attached .config to linux build tree GCC_VERSION=7.5.0 make.cross ARCH=sparc64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot All warnings (new ones prefixed by >>): In file included from arch/sparc/include/asm/bug.h:6:0, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from arch/sparc/include/asm/current.h:15, 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:58:52: note: in definition of macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ >> kernel//sched/deadline.c:660:2: note: in expansion of macro 'if' if (!static_branch_unlikely(&sched_asym_cpucapacity)) ^~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~~~~~~~~~~~ >> include/linux/jump_label.h:469:2: note: in expansion of macro 'if' if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ ^~ 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:58:52: note: in definition of macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ >> kernel//sched/deadline.c:660:2: note: in expansion of macro 'if' if (!static_branch_unlikely(&sched_asym_cpucapacity)) ^~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~~~~~~~~~~~ >> include/linux/jump_label.h:469:2: note: in expansion of macro 'if' if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ ^~ 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/sparc/include/asm/bug.h:6:0, from include/linux/bug.h:5, from include/linux/thread_info.h:12, from arch/sparc/include/asm/current.h:15, 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:58:52: note: in definition of macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ kernel/sched/deadline.c:660:2: note: in expansion of macro 'if' if (!static_branch_unlikely(&sched_asym_cpucapacity)) ^~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~~~~~~~~~~~ >> include/linux/jump_label.h:469:2: note: in expansion of macro 'if' if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ ^~ 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:58:52: note: in definition of macro '__trace_if_var' #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) ^~~~ kernel/sched/deadline.c:660:2: note: in expansion of macro 'if' if (!static_branch_unlikely(&sched_asym_cpucapacity)) ^~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) ^~~~~~~~~~~~~~ >> include/linux/jump_label.h:469:2: note: in expansion of macro 'if' if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \ ^~ kernel/sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely' if (!static_branch_unlikely(&sched_asym_cpucapacity)) ^~~~~~~~~~~~~~~~~~~~~~ vim +/if +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