login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
27
Re: + oom-prevent-including-schedh-in-header-file.patch added to -mm tree
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Alexey Dobriyan <adobriyan@...>
To: <akpm@...>
Cc: <linux-kernel@...>, <rientjes@...>, <andrea@...>, <clameter@...>
Subject:
Re: + oom-prevent-including-schedh-in-header-file.patch added to -mm tree
Date: Thursday, September 27, 2007 - 3:40 pm
> It's not necessary to include all of linux/sched.h in linux/oom.h. Instead,
quoted text
> 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> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
OK.
quoted text
> --- a/include/linux/oom.h~oom-prevent-including-schedh-in-header-file > +++ a/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;
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: + oom-prevent-including-schedh-in-header-file.patch adde...
, Alexey Dobriyan
, (Thu Sep 27, 3:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
-mm merge plans for 2.6.23
jjohansen
[AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
Greg KH
[GIT PATCH] driver core patches against 2.6.24
holzheu
Re: [RFC/PATCH] Documentation of kernel messages
git
:
openbsd-misc
:
linux-netdev
:
David Miller
Re: [BUG] New Kernel Bugs
Gerrit Renker
[PATCH 36/37] dccp: Initialisation and type-checking of feature sysctls
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Colocation donated by:
Who's online
There are currently
0 users
and
602 guests
online.
Syndicate