[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202203151939.NI7Rsold-lkp@intel.com>
Date: Tue, 15 Mar 2022 19:52:09 +0800
From: kernel test robot <lkp@...el.com>
To: Qing Wang <wangqing@...o.com>,
Russell King <linux@...linux.org.uk>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Sudeep Holla <sudeep.holla@....com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Steven Rostedt <rostedt@...dmis.org>,
Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Cc: kbuild-all@...ts.01.org, Wang Qing <wangqing@...o.com>
Subject: Re: [PATCH] sched: dynamic config sd_flags if described in DT
Hi Qing,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on driver-core/driver-core-testing tip/sched/core linus/master 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/Qing-Wang/sched-dynamic-config-sd_flags-if-described-in-DT/20220315-160039
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: riscv-nommu_k210_sdcard_defconfig (https://download.01.org/0day-ci/archive/20220315/202203151939.NI7Rsold-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
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
# https://github.com/0day-ci/linux/commit/3322560249c42b0a3e719b19842a3ace7d5ffb6a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Qing-Wang/sched-dynamic-config-sd_flags-if-described-in-DT/20220315-160039
git checkout 3322560249c42b0a3e719b19842a3ace7d5ffb6a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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 errors (new ones prefixed by >>):
drivers/base/arch_topology.c: In function 'cpus_share_self_cache':
>> drivers/base/arch_topology.c:648:37: error: 'cpu' undeclared (first use in this function)
648 | if (!cache_topology[cpu][cache_level])
| ^~~
drivers/base/arch_topology.c:648:37: note: each undeclared identifier is reported only once for each function it appears in
vim +/cpu +648 drivers/base/arch_topology.c
639
640 int cpus_share_self_cache(const struct cpumask *cpu_map)
641 {
642 int cache_level, cpu_id;
643 int first, last;
644 int id = cpumask_first(cpu_map);
645 int size = cpumask_weight(cpu_map);
646
647 for (cache_level = 0; cache_level < MAX_CACHE_LEVEL; cache_level++) {
> 648 if (!cache_topology[cpu][cache_level])
649 return -1;
650
651 first = -1;
652 last = id;
653 for (cpu_id = 0; cpu_id < NR_CPUS; cpu_id++) {
654 if (cache_topology[cpu][cache_level] == cache_topology[cpu_id][cache_level]) {
655 if (cpu_id < id || cpu_id >= id + size)
656 return 0;
657
658 first = (first == -1)?cpu_id:first;
659 last = cpu_id;
660 }
661 }
662
663 if (first == id && last == id + size)
664 return 1;
665 }
666
667 return 0;
668 }
669
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists