diff options
author | Andi Kleen <ak@linux.intel.com> | 2015-11-30 04:59:43 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-12-04 09:34:46 (GMT) |
commit | ed82b8a1ff76ed7b2709e36ed361ddd022fe2407 (patch) | |
tree | afd5c94063a3fe3c693fdfc725b5148697d41b75 /mm | |
parent | b7ce2277f087fd052e7e1bbf432f7fecbee82bb6 (diff) | |
download | linux-ed82b8a1ff76ed7b2709e36ed361ddd022fe2407.tar.xz |
sched/core: Move the sched_to_prio[] arrays out of line
When building a kernel with a gcc 6 snapshot the compiler complains
about unused const static variables for prio_to_weight and prio_to_mult
for multiple scheduler files (all but core.c and autogroup.c)
The way the array is currently declared it will be duplicated in
every scheduler file that includes sched.h, which seems rather wasteful.
Move the array out of line into core.c. I also added a sched_ prefix
to avoid any potential name space collisions.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1448859583-3252-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions