oom: prevent including sched.h in header file
authorDavid Rientjes <rientjes@google.com>
Wed, 17 Oct 2007 06:25:59 +0000 (23:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:46 +0000 (08:42 -0700)
commit172acf60f39046987d3ff7b955f2bcc45de7ddd3
tree49c3d7aa17f2f595aa89057ffdb57db075c37654
parent3ff566963ce804809af9e32331b287eedeeff501
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 <andrea@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Acked-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/oom.h