login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
21
Re: + oom-move-prototypes-to-appropriate-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: <linux-kernel@...>
Cc: <rientjes@...>, <andrea@...>, <clameter@...>
Subject:
Re: + oom-move-prototypes-to-appropriate-header-file.patch added to -mm tree
Date: Friday, September 21, 2007 - 1:05 pm
On Fri, Sep 21, 2007 at 02:10:55AM -0700,
akpm@linux-foundation.org
wrote:
quoted text
> Move the OOM killer's extern function prototypes to include/linux/oom.h and > include it where necessary. > > Cc: Andrea Arcangeli <andrea@suse.de> > Acked-by: Christoph Lameter <clameter@sgi.com>
NAK. Target in corresponding Kbuild is wrong. sched.h is overkill. Could we please also drop extern's while in protos?
quoted text
> --- a/drivers/char/sysrq.c~oom-move-prototypes-to-appropriate-header-file > +++ a/drivers/char/sysrq.c > @@ -36,6 +36,7 @@ > #include <linux/kexec.h> > #include <linux/irq.h> > #include <linux/hrtimer.h> > +#include <linux/oom.h> > > #include <asm/ptrace.h> > #include <asm/irq_regs.h> > diff -puN include/linux/oom.h~oom-move-prototypes-to-appropriate-header-file include/linux/oom.h > --- a/include/linux/oom.h~oom-move-prototypes-to-appropriate-header-file > +++ a/include/linux/oom.h > @@ -1,10 +1,19 @@ > #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 */ > #define OOM_ADJUST_MIN (-16) > #define OOM_ADJUST_MAX 15 > > -#endif > +#ifdef __KERNEL__ > + > +extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order); > +extern int register_oom_notifier(struct notifier_block *nb); > +extern int unregister_oom_notifier(struct notifier_block *nb);
-
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-move-prototypes-to-appropriate-header-file.patch a...
, Alexey Dobriyan
, (Fri Sep 21, 1:05 pm)
Re: + oom-move-prototypes-to-appropriate-header-file.patch a...
, David Rientjes
, (Fri Sep 21, 3:38 pm)
Re: + oom-move-prototypes-to-appropriate-header-file.patch a...
, Alexey Dobriyan
, (Fri Sep 21, 3:54 pm)
Re: + oom-move-prototypes-to-appropriate-header-file.patch a...
, Robert P. J. Day
, (Fri Sep 21, 4:06 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michal Piotrowski
Re: [BUG] fs/xfs/xfs_bmap_btree.c:2312: error: 'b' undeclared (first use in this f...
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Paul Jackson
[PATCH 0/5 v2] x86 boot: various E820 & EFI related fixes - what changed in v2
git
:
openbsd-misc
:
linux-netdev
:
Paweł Staszewski
Re: rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: Data corruption issue with splice() on 2.6.27.10
Colocation donated by:
Who's online
There are currently
4 users
and
795 guests
online.
Online users
negociosores
christopherneal
zeekec
dogbehavior
Syndicate