aboutsummaryrefslogtreecommitdiff
path: root/drivers/message/fusion/lsi/mpi_raid.h
diff options
context:
space:
mode:
authorLi Zefan <[email protected]>2013-03-07 10:00:26 +0800
committerIngo Molnar <[email protected]>2013-03-11 09:07:24 +0100
commitb719203b846284e77f5c50fca04b458b6484aeae (patch)
tree31b2f3616890dee7265dc258a66a4266e1f95aac /drivers/message/fusion/lsi/mpi_raid.h
parent4e3da46797f8e4d8217d2e3d6857444391b306da (diff)
sched: Fix update_group_power() prototype placement to fix build warning when !CONFIG_SMP
All warnings: In file included from kernel/sched/core.c:85:0: kernel/sched/sched.h:1036:39: warning: 'struct sched_domain' declared inside parameter list kernel/sched/sched.h:1036:39: warning: its scope is only this definition or declaration, which is probably not what you want It's because struct sched_domain is defined inside #if CONFIG_SMP, while update_group_power() is declared unconditionally. Fix this warning by declaring update_group_power() only if CONFIG_SMP=n. Build tested with CONFIG_SMP enabled and then disabled. Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Li Zefan <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions