]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/sched/sched.h: fix warning
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Mar 2013 04:06:58 +0000 (15:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:20 +0000 (16:28 +1100)
x86_64 allnoconfig:

kernel/sched/sched.h:1043: warning: 'struct sched_domain' declared inside parameter list

Move the declaration inside #ifdef CONFIG_CMP

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sched/sched.h

index 30bebb955023ef0843d77a12e33156ddd0f9c729..227c9df771fbaba84fe25d710724a212b9a231c0 100644 (file)
@@ -1028,6 +1028,7 @@ extern const struct sched_class idle_sched_class;
 
 extern void trigger_load_balance(struct rq *rq, int cpu);
 extern void idle_balance(int this_cpu, struct rq *this_rq);
+extern void update_group_power(struct sched_domain *sd, int cpu);
 
 #else  /* CONFIG_SMP */
 
@@ -1040,7 +1041,6 @@ static inline void idle_balance(int cpu, struct rq *rq)
 extern void sysrq_sched_debug_show(void);
 extern void sched_init_granularity(void);
 extern void update_max_interval(void);
-extern void update_group_power(struct sched_domain *sd, int cpu);
 extern int update_runtime(struct notifier_block *nfb, unsigned long action, void *hcpu);
 extern void init_sched_rt_class(void);
 extern void init_sched_fair_class(void);