From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 22 Sep 2007 10:47:09 -0700 (PDT) From: David Rientjes Subject: [patch -mm 1/5] oom: prevent including sched.h in header file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Andrea Arcangeli , Christoph Lameter , Alexey Dobriyan , linux-mm@kvack.org List-ID: It's not necessary to include all of linux/sched.h in linux/oom.h. Instead, simply include prototypes for the relevant structs and include linux/types.h for gfp_t. Cc: Andrea Arcangeli Cc: Christoph Lameter Cc: Alexey Dobriyan Signed-off-by: David Rientjes --- include/linux/oom.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/linux/oom.h b/include/linux/oom.h --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -1,8 +1,6 @@ #ifndef __INCLUDE_LINUX_OOM_H #define __INCLUDE_LINUX_OOM_H -#include - /* /proc//oom_adj set to -17 protects from the oom-killer */ #define OOM_DISABLE (-17) /* inclusive */ @@ -11,6 +9,11 @@ #ifdef __KERNEL__ +#include + +struct zonelist; +struct notifier_block; + /* * Types of limitations to the nodes from which allocations may occur */ -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org