Re: [RFC][PATCH 1/3] kernel,sched,time: Clean up gcc work-arounds

From: Stephen Rothwell
Date: Tue Apr 24 2012 - 20:14:12 EST


Hi Peter,

On Tue, 24 Apr 2012 18:10:40 +0200 Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
>
> We've grown various copies of a particular gcc work-around,
> consolidate them into one and add a larger comment.
>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> ---
> include/linux/compiler.h | 12 ++++++++++++
> include/linux/math64.h | 4 +---
> kernel/sched/core.c | 8 ++------
> kernel/sched/fair.c | 8 ++------
> kernel/time.c | 11 ++++-------

You should, of course, include linux/compiler.h into those last 4 files ...

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgp00000.pgp
Description: PGP signature