[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202203150659.T51bnDgz-lkp@intel.com>
Date: Tue, 15 Mar 2022 07:02:09 +0800
From: kernel test robot <lkp@...el.com>
To: Dietmar Eggemann <dietmar.eggemann@....com>,
Darren Hart <darren@...amperecomputing.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
Vincent Guittot <vincent.guittot@...aro.org>,
Will Deacon <will@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Linux Arm <linux-arm-kernel@...ts.infradead.org>,
Sudeep Holla <sudeep.holla@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Catalin Marinas <Catalin.Marinas@....com>,
Barry Song <song.bao.hua@...ilicon.com>,
Valentin Schneider <Valentin.Schneider@....com>,
"D . Scott Phillips" <scott@...amperecomputing.com>,
Ilkka Koskinen <ilkka@...amperecomputing.com>,
stable@...r.kernel.org
Subject: Re: [PATCH] arch_topology: Swap MC & CLS SD mask if MC weight==1 &
Hi Dietmar,
I love your patch! Perhaps something to improve:
[auto build test WARNING on driver-core/driver-core-testing]
[also build test WARNING on v5.17-rc8 next-20220310]
[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]
url: https://github.com/0day-ci/linux/commits/Dietmar-Eggemann/arch_topology-Swap-MC-CLS-SD-mask-if-MC-weight-1/20220315-004742
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 4a248f85b3dd8e010ff8335755c927130e9b0764
config: riscv-randconfig-r042-20220314 (https://download.01.org/0day-ci/archive/20220315/202203150659.T51bnDgz-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 3e4950d7fa78ac83f33bbf1658e2f49a73719236)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/7528fb2ea1e30038ee1dcc48df9d413502977895
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dietmar-Eggemann/arch_topology-Swap-MC-CLS-SD-mask-if-MC-weight-1/20220315-004742
git checkout 7528fb2ea1e30038ee1dcc48df9d413502977895
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/base/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/base/arch_topology.c:617:23: warning: no previous prototype for function '_cpu_coregroup_mask' [-Wmissing-prototypes]
const struct cpumask *_cpu_coregroup_mask(int cpu)
^
drivers/base/arch_topology.c:617:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const struct cpumask *_cpu_coregroup_mask(int cpu)
^
static
>> drivers/base/arch_topology.c:634:23: warning: no previous prototype for function '_cpu_clustergroup_mask' [-Wmissing-prototypes]
const struct cpumask *_cpu_clustergroup_mask(int cpu)
^
drivers/base/arch_topology.c:634:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const struct cpumask *_cpu_clustergroup_mask(int cpu)
^
static
2 warnings generated.
vim +/_cpu_coregroup_mask +617 drivers/base/arch_topology.c
616
> 617 const struct cpumask *_cpu_coregroup_mask(int cpu)
618 {
619 const cpumask_t *core_mask = cpumask_of_node(cpu_to_node(cpu));
620
621 /* Find the smaller of NUMA, core or LLC siblings */
622 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) {
623 /* not numa in package, lets use the package siblings */
624 core_mask = &cpu_topology[cpu].core_sibling;
625 }
626 if (cpu_topology[cpu].llc_id != -1) {
627 if (cpumask_subset(&cpu_topology[cpu].llc_sibling, core_mask))
628 core_mask = &cpu_topology[cpu].llc_sibling;
629 }
630
631 return core_mask;
632 }
633
> 634 const struct cpumask *_cpu_clustergroup_mask(int cpu)
635 {
636 return &cpu_topology[cpu].cluster_sibling;
637 }
638
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists