* Re: [RFC PATCH 1/2] sched/fair: Adjust CFS loadbalance for machine with qemu native CPU topology.
[not found] <1689842053-5291-2-git-send-email-Kenan.Liu@linux.alibaba.com>
@ 2023-07-20 12:24 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-20 12:24 UTC (permalink / raw)
To: Kenan.Liu; +Cc: llvm, oe-kbuild-all
Hi Kenan.Liu,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on tip/sched/core]
[also build test ERROR on linus/master v6.5-rc2 next-20230720]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kenan-Liu/sched-fair-Adjust-CFS-loadbalance-for-machine-with-qemu-native-CPU-topology/20230720-170238
base: tip/sched/core
patch link: https://lore.kernel.org/r/1689842053-5291-2-git-send-email-Kenan.Liu%40linux.alibaba.com
patch subject: [RFC PATCH 1/2] sched/fair: Adjust CFS loadbalance for machine with qemu native CPU topology.
config: hexagon-randconfig-r036-20230720 (https://download.01.org/0day-ci/archive/20230720/202307202059.uEdqRmsr-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230720/202307202059.uEdqRmsr-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/202307202059.uEdqRmsr-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/fair.c:28:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from kernel/sched/fair.c:28:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from kernel/sched/fair.c:28:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
>> kernel/sched/fair.c:149:35: error: call to undeclared function 'cpu_smt_mask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
149 | const struct cpumask *smt_mask = cpu_smt_mask(cpu);
| ^
kernel/sched/fair.c:149:35: note: did you mean 'cpu_cpu_mask'?
include/linux/topology.h:243:37: note: 'cpu_cpu_mask' declared here
243 | static inline const struct cpumask *cpu_cpu_mask(int cpu)
| ^
>> kernel/sched/fair.c:149:24: error: incompatible integer to pointer conversion initializing 'const struct cpumask *' with an expression of type 'int' [-Wint-conversion]
149 | const struct cpumask *smt_mask = cpu_smt_mask(cpu);
| ^ ~~~~~~~~~~~~~~~~~
>> kernel/sched/fair.c:158:2: error: member reference type 'int' is not a pointer
158 | for_each_cpu(sibling, cpu_smt_mask(cpu)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:282:24: note: expanded from macro 'for_each_cpu'
282 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:28:39: note: expanded from macro 'cpumask_bits'
28 | #define cpumask_bits(maskp) ((maskp)->bits)
| ^
include/linux/find.h:559:41: note: expanded from macro 'for_each_set_bit'
559 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++)
| ^~~~
kernel/sched/fair.c:6243:6: warning: no previous prototype for function 'init_cfs_bandwidth' [-Wmissing-prototypes]
6243 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^
kernel/sched/fair.c:6243:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
6243 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^
| static
kernel/sched/fair.c:12868:6: warning: no previous prototype for function 'free_fair_sched_group' [-Wmissing-prototypes]
12868 | void free_fair_sched_group(struct task_group *tg) { }
| ^
kernel/sched/fair.c:12868:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
12868 | void free_fair_sched_group(struct task_group *tg) { }
| ^
| static
kernel/sched/fair.c:12870:5: warning: no previous prototype for function 'alloc_fair_sched_group' [-Wmissing-prototypes]
12870 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^
kernel/sched/fair.c:12870:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
12870 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^
| static
kernel/sched/fair.c:12875:6: warning: no previous prototype for function 'online_fair_sched_group' [-Wmissing-prototypes]
12875 | void online_fair_sched_group(struct task_group *tg) { }
| ^
kernel/sched/fair.c:12875:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
12875 | void online_fair_sched_group(struct task_group *tg) { }
| ^
| static
kernel/sched/fair.c:12877:6: warning: no previous prototype for function 'unregister_fair_sched_group' [-Wmissing-prototypes]
12877 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^
kernel/sched/fair.c:12877:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
12877 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^
| static
11 warnings and 3 errors generated.
vim +/cpu_smt_mask +149 kernel/sched/fair.c
144
145 #ifdef CONFIG_SMP
146 static void explore_core_smp_topology(void)
147 {
148 int cpu = smp_processor_id(), sibling;
> 149 const struct cpumask *smt_mask = cpu_smt_mask(cpu);
150
151 if (nr_cpu_ids <= 2)
152 return;
153
154 smt_nr_cpu = cpumask_weight(smt_mask);
155 if (smt_nr_cpu < 2)
156 return;
157
> 158 for_each_cpu(sibling, cpu_smt_mask(cpu)) {
159 if (cpu == sibling)
160 continue;
161 if (abs(cpu - sibling) == 1)
162 smt_neighbour_topo = true;
163 }
164 }
165
--
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:[~2023-07-20 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1689842053-5291-2-git-send-email-Kenan.Liu@linux.alibaba.com>
2023-07-20 12:24 ` [RFC PATCH 1/2] sched/fair: Adjust CFS loadbalance for machine with qemu native CPU topology 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).