[tip:tmp.tmp2 176/364] include/linux/coredump.h:37:45: warning: 'struct kernel_siginfo' declared inside parameter list will not be visible outside of this definition or declaration

From: kernel test robot
Date: Sun Jun 13 2021 - 16:50:40 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: be65473fb5b77d57d8955beffd5aa370cfdae467 [176/364] sched/headers, rcu: Remove <linux/sched/signal.h> dependency from <linux/rcuwait.h>
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=be65473fb5b77d57d8955beffd5aa370cfdae467
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout be65473fb5b77d57d8955beffd5aa370cfdae467
# save the attached .config to linux build tree
make W=1 ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from arch/x86/events/intel/bts.c:16:
>> include/linux/coredump.h:37:45: warning: 'struct kernel_siginfo' declared inside parameter list will not be visible outside of this definition or declaration
37 | static inline void do_coredump(const struct kernel_siginfo *siginfo) {}
| ^~~~~~~~~~~~~~


vim +37 include/linux/coredump.h

19
20 /*
21 * These are the only things you should do on a core-file: use only these
22 * functions to write out all the necessary info.
23 */
24 struct coredump_params;
25 struct kernel_siginfo;
26 extern void dump_skip_to(struct coredump_params *cprm, unsigned long to);
27 extern void dump_skip(struct coredump_params *cprm, size_t nr);
28 extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
29 extern int dump_align(struct coredump_params *cprm, int align);
30 int dump_user_range(struct coredump_params *cprm, unsigned long start,
31 unsigned long len);
32 int dump_vma_snapshot(struct coredump_params *cprm, int *vma_count,
33 struct core_vma_metadata **vma_meta,
34 size_t *vma_data_size_ptr);
35 extern void do_coredump(const struct kernel_siginfo *siginfo);
36 #else
> 37 static inline void do_coredump(const struct kernel_siginfo *siginfo) {}
38 #endif
39

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip