[tip:WIP.sched/core 116/122] include/linux/sched/autogroup.h:13:74: warning: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration

From: kbuild test robot
Date: Thu Feb 02 2017 - 19:54:20 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: 248481ca482f2c70a5cdb016f45d2a001e2ce041 [116/122] kasan, sched/headers: Remove <linux/sched.h> from <linux/kasan.h> and uninline kasan_enable/disable_current()
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 248481ca482f2c70a5cdb016f45d2a001e2ce041
# save the attached .config to linux build tree
make.cross ARCH=alpha

All warnings (new ones prefixed by >>):

In file included from kernel/fork.c:15:0:
>> include/linux/sched/autogroup.h:13:74: warning: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration
extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m);
^~~~~~~~

vim +13 include/linux/sched/autogroup.h

ca1ed550 Ingo Molnar 2017-02-01 1 #ifndef _LINUX_SCHED_AUTOGROUP_H
ca1ed550 Ingo Molnar 2017-02-01 2 #define _LINUX_SCHED_AUTOGROUP_H
ca1ed550 Ingo Molnar 2017-02-01 3
248481ca Ingo Molnar 2017-02-02 4 struct signal_struct;
248481ca Ingo Molnar 2017-02-02 5
ca1ed550 Ingo Molnar 2017-02-01 6 #ifdef CONFIG_SCHED_AUTOGROUP
ca1ed550 Ingo Molnar 2017-02-01 7 extern void sched_autogroup_create_attach(struct task_struct *p);
ca1ed550 Ingo Molnar 2017-02-01 8 extern void sched_autogroup_detach(struct task_struct *p);
ca1ed550 Ingo Molnar 2017-02-01 9 extern void sched_autogroup_fork(struct signal_struct *sig);
ca1ed550 Ingo Molnar 2017-02-01 10 extern void sched_autogroup_exit(struct signal_struct *sig);
ca1ed550 Ingo Molnar 2017-02-01 11 extern void sched_autogroup_exit_task(struct task_struct *p);
ca1ed550 Ingo Molnar 2017-02-01 12 #ifdef CONFIG_PROC_FS
ca1ed550 Ingo Molnar 2017-02-01 @13 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m);
ca1ed550 Ingo Molnar 2017-02-01 14 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
ca1ed550 Ingo Molnar 2017-02-01 15 #endif
ca1ed550 Ingo Molnar 2017-02-01 16 #else
ca1ed550 Ingo Molnar 2017-02-01 17 static inline void sched_autogroup_create_attach(struct task_struct *p) { }
ca1ed550 Ingo Molnar 2017-02-01 18 static inline void sched_autogroup_detach(struct task_struct *p) { }
ca1ed550 Ingo Molnar 2017-02-01 19 static inline void sched_autogroup_fork(struct signal_struct *sig) { }
ca1ed550 Ingo Molnar 2017-02-01 20 static inline void sched_autogroup_exit(struct signal_struct *sig) { }
ca1ed550 Ingo Molnar 2017-02-01 21 static inline void sched_autogroup_exit_task(struct task_struct *p) { }

:::::: The code at line 13 was first introduced by commit
:::::: ca1ed550abbcf6a127d1e2c695d6f4db7af9ca00 sched/autogroup: Collect extern APIs into <linux/sched/autogroup.h>

:::::: TO: Ingo Molnar <mingo@xxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip