From: Andrew Morton In file included from include/linux/utsname.h:35, from include/asm/elf.h:12, from include/linux/elf.h:7, from include/linux/module.h:15, from include/linux/sysdev.h:25, from kernel/time/clocksource.c:28: include/linux/sched.h:1648: warning: 'struct sysdev_class' declared inside parameter list include/linux/sched.h:1648: warning: its scope is only this definition or declaration, which is probably not what you want Cc: Andi Kleen Cc: Ralf Baechle Signed-off-by: Andrew Morton --- include/linux/cpu.h | 3 +++ include/linux/sched.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff -puN include/linux/cpu.h~linux-sysdevh-needs-to-include-linux-moduleh-up-fix include/linux/cpu.h --- a/include/linux/cpu.h~linux-sysdevh-needs-to-include-linux-moduleh-up-fix +++ a/include/linux/cpu.h @@ -41,6 +41,9 @@ extern void cpu_remove_sysdev_attr(struc extern int cpu_add_sysdev_attr_group(struct attribute_group *attrs); extern void cpu_remove_sysdev_attr_group(struct attribute_group *attrs); +extern struct sysdev_attribute attr_sched_mc_power_savings; +extern struct sysdev_attribute attr_sched_smt_power_savings; +extern int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls); #ifdef CONFIG_HOTPLUG_CPU extern void unregister_cpu(struct cpu *cpu); diff -puN include/linux/sched.h~linux-sysdevh-needs-to-include-linux-moduleh-up-fix include/linux/sched.h --- a/include/linux/sched.h~linux-sysdevh-needs-to-include-linux-moduleh-up-fix +++ a/include/linux/sched.h @@ -1641,10 +1641,7 @@ static inline void arch_pick_mmap_layout extern long sched_setaffinity(pid_t pid, cpumask_t new_mask); extern long sched_getaffinity(pid_t pid, cpumask_t *mask); -#include extern int sched_mc_power_savings, sched_smt_power_savings; -extern struct sysdev_attribute attr_sched_mc_power_savings, attr_sched_smt_power_savings; -extern int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls); extern void normalize_rt_tasks(void); _