lkml.org 
[lkml]   [2015]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Move sched_to_prio arrays out of line
On Mon, Nov 30, 2015 at 10:03:13AM +0100, Peter Zijlstra wrote:
> On Sun, Nov 29, 2015 at 08:59:43PM -0800, Andi Kleen wrote:
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > 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.
>
> Yeah, that's not right.
>
> > Move the array out of line into core.c. I also added a sched_ prefix
> > to avoid any potential name space collisions.
>
> Thanks!

Thanks. Please make sure the merge v2, v1 had one missing conversion.

-Andi

--
ak@linux.intel.com -- Speaking for myself only


\
 
 \ /
  Last update: 2015-11-30 18:41    [W:0.037 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site