]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, oom: remove statically defined arch functions of same name
authorDavid Rientjes <rientjes@google.com>
Thu, 29 Nov 2012 03:18:10 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:22 +0000 (16:23 +1100)
commit5bffd81330c435cbb1a7acd2623075c30dd05d60
treed86956bd2da786ff458127bf2129ca2ace771dbd
parent691d8851ebd129e51680ba5324a27d2f2ddcb460
mm, oom: remove statically defined arch functions of same name

out_of_memory() is a globally defined function to call the oom killer.
x86, sh, and powerpc all use a function of the same name within file scope
in their respective fault.c unnecessarily.  Inline the functions into the
pagefault handlers to clean the code up.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/mm/fault.c
arch/sh/mm/fault.c
arch/x86/mm/fault.c