linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch -mm 1/5] oom: prevent including sched.h in header file
@ 2007-09-22 17:47 David Rientjes
  2007-09-22 17:47 ` [patch -mm 2/5] oom: add header file to Kbuild as unifdef David Rientjes
  0 siblings, 1 reply; 26+ messages in thread
From: David Rientjes @ 2007-09-22 17:47 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Andrea Arcangeli, Christoph Lameter, Alexey Dobriyan, linux-mm

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 <andrea@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David Rientjes <rientjes@google.com>
---
 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 <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, 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2007-09-27  6:15 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-22 17:47 [patch -mm 1/5] oom: prevent including sched.h in header file David Rientjes
2007-09-22 17:47 ` [patch -mm 2/5] oom: add header file to Kbuild as unifdef David Rientjes
2007-09-22 17:47   ` [patch -mm 3/5] oom: convert zone_scan_lock from mutex to spinlock David Rientjes
2007-09-22 17:47     ` [patch -mm 4/5] mm: test and set zone reclaim lock before starting reclaim David Rientjes
2007-09-22 17:47       ` [patch -mm 5/5] oom: add sysctl to dump tasks memory state David Rientjes
2007-09-25  4:37         ` Balbir Singh
2007-09-25  4:57           ` David Rientjes
2007-09-26 20:06         ` Andrew Morton
2007-09-26 20:46           ` David Rientjes
2007-09-26 21:47             ` Andrew Morton
2007-09-27  6:15               ` David Rientjes
2007-09-24 19:05       ` [patch -mm 4/5] mm: test and set zone reclaim lock before starting reclaim Christoph Lameter
2007-09-24 19:14         ` David Rientjes
2007-09-24 20:11           ` Christoph Lameter
2007-09-24 21:02           ` David Rientjes
2007-09-24 21:09             ` Christoph Lameter
2007-09-25  4:26       ` Balbir Singh
2007-09-25  4:34         ` David Rientjes
2007-09-25  6:17           ` Balbir Singh
2007-09-25  6:29             ` David Rientjes
2007-09-25 21:15             ` Christoph Lameter
2007-09-25 21:19               ` David Rientjes
2007-09-25 21:39                 ` Christoph Lameter
2007-09-25 21:43                   ` David Rientjes
2007-09-25 21:14           ` Christoph Lameter
2007-09-25 21:17             ` David Rientjes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox