* [linux-next:master 12185/12461] arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
[not found] <202201182205.RYtP0ybc-lkp@intel.com>
@ 2022-01-20 1:19 ` kernel test robot
2022-01-20 17:26 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-01-20 1:19 UTC (permalink / raw)
To: Helge Deller; +Cc: kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6f59bc242877fcb9c9a5136ea62d383fce5615df
commit: 3d3a5814228feedd46fbddbeab381ae9bc2996ba [12185/12461] parisc: Fix missing prototype for 'toc_intr' warning in toc.c
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220118/202201182205.RYtP0ybc-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3d3a5814228feedd46fbddbeab381ae9bc2996ba
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 3d3a5814228feedd46fbddbeab381ae9bc2996ba
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings:
arch/parisc/kernel/toc.c:64:32: sparse: sparse: symbol 'toc_intr' redeclared with different type (different modifiers):
arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
arch/parisc/kernel/toc.c: note: in included file (through arch/parisc/include/asm/spinlock.h, arch/parisc/include/asm/atomic.h, include/linux/atomic.h, ...):
arch/parisc/include/asm/processor.h:292:13: sparse: note: previously declared as:
arch/parisc/include/asm/processor.h:292:13: sparse: void extern [addressable] [toplevel] toc_intr( ... )
vim +64 arch/parisc/kernel/toc.c
bc294838cc3443 Sven Schnelle 2021-10-14 63
bc294838cc3443 Sven Schnelle 2021-10-14 @64 void notrace __noreturn __cold toc_intr(struct pt_regs *regs)
bc294838cc3443 Sven Schnelle 2021-10-14 65 {
bc294838cc3443 Sven Schnelle 2021-10-14 66 struct pdc_toc_pim_20 pim_data20;
bc294838cc3443 Sven Schnelle 2021-10-14 67 struct pdc_toc_pim_11 pim_data11;
bc294838cc3443 Sven Schnelle 2021-10-14 68
d6ab9fc74513ae Helge Deller 2022-01-07 69 /* verify we wrote regs to the correct stack */
d6ab9fc74513ae Helge Deller 2022-01-07 70 BUG_ON(regs != (struct pt_regs *)&per_cpu(toc_stack, raw_smp_processor_id()));
bc294838cc3443 Sven Schnelle 2021-10-14 71
bc294838cc3443 Sven Schnelle 2021-10-14 72 if (boot_cpu_data.cpu_type >= pcxu) {
bc294838cc3443 Sven Schnelle 2021-10-14 73 if (pdc_pim_toc20(&pim_data20))
bc294838cc3443 Sven Schnelle 2021-10-14 74 panic("Failed to get PIM data");
bc294838cc3443 Sven Schnelle 2021-10-14 75 toc20_to_pt_regs(regs, &pim_data20);
bc294838cc3443 Sven Schnelle 2021-10-14 76 } else {
bc294838cc3443 Sven Schnelle 2021-10-14 77 if (pdc_pim_toc11(&pim_data11))
bc294838cc3443 Sven Schnelle 2021-10-14 78 panic("Failed to get PIM data");
bc294838cc3443 Sven Schnelle 2021-10-14 79 toc11_to_pt_regs(regs, &pim_data11);
bc294838cc3443 Sven Schnelle 2021-10-14 80 }
bc294838cc3443 Sven Schnelle 2021-10-14 81
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 12185/12461] arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
2022-01-20 1:19 ` [linux-next:master 12185/12461] arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... ) kernel test robot
@ 2022-01-20 17:26 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2022-01-20 17:26 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, Linux Memory Management List
On 1/20/22 02:19, kernel test robot wrote:
> sparse warnings:
>
> arch/parisc/kernel/toc.c:64:32: sparse: sparse: symbol 'toc_intr' redeclared with different type (different modifiers):
> arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
> arch/parisc/kernel/toc.c: note: in included file (through arch/parisc/include/asm/spinlock.h, arch/parisc/include/asm/atomic.h, include/linux/atomic.h, ...):
> arch/parisc/include/asm/processor.h:292:13: sparse: note: previously declared as:
> arch/parisc/include/asm/processor.h:292:13: sparse: void extern [addressable] [toplevel] toc_intr( ... )
Thanks, fixed now.
Helge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-20 17:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <202201182205.RYtP0ybc-lkp@intel.com>
2022-01-20 1:19 ` [linux-next:master 12185/12461] arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... ) kernel test robot
2022-01-20 17:26 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox