tree:
https://github.com/linuxppc/linux merge-test
head: 5051da4e992d7b08169e728405032fba385a4629
commit: 12d381add7ef275932b24cc3475c01864d17568a [663/669] Automatic merge of
'master' into merge (2020-10-17 21:12)
config: powerpc64-randconfig-r035-20201019 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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/linuxppc/linux/commit/12d381add7ef275932b24cc3475c0186...
git remote add linuxppc
https://github.com/linuxppc/linux
git fetch --no-tags linuxppc merge-test
git checkout 12d381add7ef275932b24cc3475c01864d17568a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_init':
> arch/powerpc/mm/kasan/kasan_init_32.c:143:6: error: redeclaration
of 'ret' with no linkage
143 | int ret;
| ^~~
arch/powerpc/mm/kasan/kasan_init_32.c:141:6: note: previous declaration of
'ret' was here
141 | int ret;
| ^~~
vim +/ret +143 arch/powerpc/mm/kasan/kasan_init_32.c
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 137
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 138 void __init kasan_init(void)
41ea93cf7ba4e0 Christophe Leroy 2020-07-02 139 {
b10d6bca87204c Mike Rapoport 2020-10-13 140 phys_addr_t base, end;
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 141 int ret;
b10d6bca87204c Mike Rapoport 2020-10-13 142 u64 i;
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 @143 int ret;
2edb16efc899f9 Christophe Leroy 2019-04-26 144
b10d6bca87204c Mike Rapoport 2020-10-13 145 for_each_mem_range(i, &base,
&end) {
b10d6bca87204c Mike Rapoport 2020-10-13 146 phys_addr_t top = min(end,
total_lowmem);
2edb16efc899f9 Christophe Leroy 2019-04-26 147
2edb16efc899f9 Christophe Leroy 2019-04-26 148 if (base >= top)
2edb16efc899f9 Christophe Leroy 2019-04-26 149 continue;
2edb16efc899f9 Christophe Leroy 2019-04-26 150
2edb16efc899f9 Christophe Leroy 2019-04-26 151 ret = kasan_init_region(__va(base), top
- base);
2edb16efc899f9 Christophe Leroy 2019-04-26 152 if (ret)
2edb16efc899f9 Christophe Leroy 2019-04-26 153 panic("kasan: kasan_init_region()
failed");
2edb16efc899f9 Christophe Leroy 2019-04-26 154 }
ec97d022f621c6 Christophe Leroy 2020-05-19 155
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 156 if (IS_ENABLED(CONFIG_KASAN_VMALLOC)) {
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 157 ret =
kasan_init_shadow_page_tables(KASAN_SHADOW_START, KASAN_SHADOW_END);
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 158
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 159 if (ret)
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 160 panic("kasan:
kasan_init_shadow_page_tables() failed");
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 161 }
4c42dc5c69a8f2 Christophe Leroy 2020-09-11 162
2edb16efc899f9 Christophe Leroy 2019-04-26 163 kasan_remap_early_shadow_ro();
2edb16efc899f9 Christophe Leroy 2019-04-26 164
2edb16efc899f9 Christophe Leroy 2019-04-26 165 clear_page(kasan_early_shadow_page);
2edb16efc899f9 Christophe Leroy 2019-04-26 166
2edb16efc899f9 Christophe Leroy 2019-04-26 167 /* At this point kasan is fully
initialized. Enable error messages */
2edb16efc899f9 Christophe Leroy 2019-04-26 168 init_task.kasan_depth = 0;
2edb16efc899f9 Christophe Leroy 2019-04-26 169 pr_info("KASAN init done\n");
2edb16efc899f9 Christophe Leroy 2019-04-26 170 }
2edb16efc899f9 Christophe Leroy 2019-04-26 171
:::::: The code at line 143 was first introduced by commit
:::::: 4c42dc5c69a8f24c467a6c997909d2f1d4efdc7f powerpc/kasan: Fix CONFIG_KASAN_VMALLOC
for 8xx
:::::: TO: Christophe Leroy <christophe.leroy(a)csgroup.eu>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org