2023-11-17 13:11:09

by kernel test robot

[permalink] [raw]
Subject: arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: missing identifier in declaration

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7475e51b87969e01a6812eac713a1c8310372e8a
commit: 4800a6215e335c6dade05e10c8fdbf919c04a3a7 parisc: Wire up eBPF JIT compiler
date: 3 months ago
config: parisc-randconfig-r113-20231115 (https://download.01.org/0day-ci/archive/20231117/[email protected]/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231117/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: missing identifier in declaration
arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: Expected ; at the end of type declaration
arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: got $
arch/parisc/net/bpf_jit_comp32.c:322:13: sparse: sparse: Expected ; at the end of type declaration
arch/parisc/net/bpf_jit_comp32.c:322:13: sparse: sparse: got $
arch/parisc/net/bpf_jit_comp32.c:323:13: sparse: sparse: Expected ; at the end of type declaration
arch/parisc/net/bpf_jit_comp32.c:323:13: sparse: sparse: got $
arch/parisc/net/bpf_jit_comp32.c:666:37: sparse: sparse: Expected ) in function call
arch/parisc/net/bpf_jit_comp32.c:666:37: sparse: sparse: got $
arch/parisc/net/bpf_jit_comp32.c:669:37: sparse: sparse: Expected ) in function call
arch/parisc/net/bpf_jit_comp32.c:669:37: sparse: sparse: got $
arch/parisc/net/bpf_jit_comp32.c:672:37: sparse: sparse: Expected ) in function call
arch/parisc/net/bpf_jit_comp32.c:672:37: sparse: sparse: got $
>> arch/parisc/net/bpf_jit_comp32.c:666:36: sparse: sparse: not enough arguments for function emit_call_millicode
arch/parisc/net/bpf_jit_comp32.c:669:36: sparse: sparse: not enough arguments for function emit_call_millicode
arch/parisc/net/bpf_jit_comp32.c:672:36: sparse: sparse: not enough arguments for function emit_call_millicode

vim +321 arch/parisc/net/bpf_jit_comp32.c

ceb0e7267693d3 Helge Deller 2023-08-17 319
ceb0e7267693d3 Helge Deller 2023-08-17 320 /* extern hppa millicode functions */
ceb0e7267693d3 Helge Deller 2023-08-17 @321 extern void $$mulI(void);
ceb0e7267693d3 Helge Deller 2023-08-17 322 extern void $$divU(void);
ceb0e7267693d3 Helge Deller 2023-08-17 323 extern void $$remU(void);
ceb0e7267693d3 Helge Deller 2023-08-17 324

:::::: The code at line 321 was first introduced by commit
:::::: ceb0e7267693d3e6c43bd65695cd79d7c072a42a parisc: Add 32-bit eBPF JIT compiler

:::::: TO: Helge Deller <[email protected]>
:::::: CC: Helge Deller <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


2023-11-17 13:17:24

by Helge Deller

[permalink] [raw]
Subject: Re: arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: missing identifier in declaration

On 11/17/23 14:07, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 7475e51b87969e01a6812eac713a1c8310372e8a
> commit: 4800a6215e335c6dade05e10c8fdbf919c04a3a7 parisc: Wire up eBPF JIT compiler
> date: 3 months ago
> config: parisc-randconfig-r113-20231115 (https://download.01.org/0day-ci/archive/20231117/[email protected]/config)
> compiler: hppa-linux-gcc (GCC) 13.2.0
> reproduce: (https://download.01.org/0day-ci/archive/20231117/[email protected]/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 <[email protected]>
> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
>
> sparse warnings: (new ones prefixed by >>)
>>> arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: missing identifier in declaration
> arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: Expected ; at the end of type declaration
> arch/parisc/net/bpf_jit_comp32.c:321:13: sparse: sparse: got $
> arch/parisc/net/bpf_jit_comp32.c:322:13: sparse: sparse: Expected ; at the end of type declaration
> arch/parisc/net/bpf_jit_comp32.c:322:13: sparse: sparse: got $
> arch/parisc/net/bpf_jit_comp32.c:323:13: sparse: sparse: Expected ; at the end of type declaration
> arch/parisc/net/bpf_jit_comp32.c:323:13: sparse: sparse: got $
> arch/parisc/net/bpf_jit_comp32.c:666:37: sparse: sparse: Expected ) in function call
> arch/parisc/net/bpf_jit_comp32.c:666:37: sparse: sparse: got $
> arch/parisc/net/bpf_jit_comp32.c:669:37: sparse: sparse: Expected ) in function call
> arch/parisc/net/bpf_jit_comp32.c:669:37: sparse: sparse: got $
> arch/parisc/net/bpf_jit_comp32.c:672:37: sparse: sparse: Expected ) in function call
> arch/parisc/net/bpf_jit_comp32.c:672:37: sparse: sparse: got $
>>> arch/parisc/net/bpf_jit_comp32.c:666:36: sparse: sparse: not enough arguments for function emit_call_millicode
> arch/parisc/net/bpf_jit_comp32.c:669:36: sparse: sparse: not enough arguments for function emit_call_millicode
> arch/parisc/net/bpf_jit_comp32.c:672:36: sparse: sparse: not enough arguments for function emit_call_millicode
>
> vim +321 arch/parisc/net/bpf_jit_comp32.c
>
> ceb0e7267693d3 Helge Deller 2023-08-17 319
> ceb0e7267693d3 Helge Deller 2023-08-17 320 /* extern hppa millicode functions */
> ceb0e7267693d3 Helge Deller 2023-08-17 @321 extern void $$mulI(void);
> ceb0e7267693d3 Helge Deller 2023-08-17 322 extern void $$divU(void);
> ceb0e7267693d3 Helge Deller 2023-08-17 323 extern void $$remU(void);

This is actually a sparse bug.... "$" is a valid character with which function
names may start with (at least on parisc).

Helge