lkml.org 
[lkml]   [2017]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/35] sched/headers: Remove <linux/sched.h> from <linux/sched/autogroup.h>
    Date
    The <linux/sched/autogroup.h> file is a largely self-contained header and users of
    it either don't need <linux/sched.h> - or have already included it.

    Add a 'task_struct' predeclaration to make it build standalone.

    This reduces the size of the header dependency graph.

    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>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    ---
    include/linux/sched/autogroup.h | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/include/linux/sched/autogroup.h b/include/linux/sched/autogroup.h
    index fd6855548d0c..55cd496df884 100644
    --- a/include/linux/sched/autogroup.h
    +++ b/include/linux/sched/autogroup.h
    @@ -1,9 +1,8 @@
    #ifndef _LINUX_SCHED_AUTOGROUP_H
    #define _LINUX_SCHED_AUTOGROUP_H

    -#include <linux/sched.h>
    -
    struct signal_struct;
    +struct task_struct;
    struct task_group;
    struct seq_file;

    --
    2.7.4
    \
     
     \ /
      Last update: 2017-02-08 20:03    [W:2.665 / U:0.524 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site