Commit:     172acf60f39046987d3ff7b955f2bcc45de7ddd3
Parent:     3ff566963ce804809af9e32331b287eedeeff501
Author:     David Rientjes <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 16 23:25:59 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 08:42:46 2007 -0700

    oom: prevent including sched.h in header file
    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 <[EMAIL PROTECTED]>
    Cc: Christoph Lameter <[EMAIL PROTECTED]>
    Acked-by: Alexey Dobriyan <[EMAIL PROTECTED]>
    Signed-off-by: David Rientjes <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 include/linux/oom.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/linux/oom.h b/include/linux/oom.h
index e908120..3852436 100644
--- a/include/linux/oom.h
+++ b/include/linux/oom.h
@@ -1,8 +1,6 @@
-#include <linux/sched.h>
 /* /proc/<pid>/oom_adj set to -17 protects from the oom-killer */
 #define OOM_DISABLE (-17)
 /* inclusive */
@@ -11,6 +9,11 @@
 #ifdef __KERNEL__
+#include <linux/types.h>
+struct zonelist;
+struct notifier_block;
  * Types of limitations to the nodes from which allocations may occur
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to