* [jolsa-perf:bpf/kallsyms 2/10] include/linux/kallsyms.h:31:19: sparse: the previous one is here
@ 2020-02-04 15:29 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-04 15:29 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/kallsyms
head: f256d1349d6fcc0d1b049a866fb3eaedc315476f
commit: 7f6f86fa6e5ef5120d0fec0f801ac94f23889580 [2/10] bpf: Add name to struct bpf_ksym
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-154-g1dc00f87-dirty
git checkout 7f6f86fa6e5ef5120d0fec0f801ac94f23889580
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
arch/x86/mm/init_32.c:241:19: sparse: sparse: multiple definitions for function 'is_kernel_text'
>> include/linux/kallsyms.h:31:19: sparse: the previous one is here
vim +31 include/linux/kallsyms.h
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 30
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 @31 static inline int is_kernel_text(unsigned long addr)
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 32 {
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 33 if ((addr >= (unsigned long)_stext && addr <= (unsigned long)_etext) ||
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 34 arch_is_kernel_text(addr))
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 35 return 1;
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 36 return in_gate_area_no_mm(addr);
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 37 }
04b8eb7a4ccd9e Sergey Senozhatsky 2017-12-06 38
:::::: The code@line 31 was first introduced by commit
:::::: 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 symbol lookup: introduce dereference_symbol_descriptor()
:::::: TO: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
:::::: CC: Petr Mladek <pmladek@suse.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-04 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 15:29 [jolsa-perf:bpf/kallsyms 2/10] include/linux/kallsyms.h:31:19: sparse: the previous one is here kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.