From 1fa98b86990a11ba88aa88b9884053c257594bc9 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 5 Jun 2015 15:03:17 +1000 Subject: [PATCH] oom-split-out-forced-oom-killer-checkpatch-fixes WARNING: line over 80 characters #144: FILE: mm/oom_kill.c:654: + struct zonelist *zonelist = node_zonelist(first_memory_node, GFP_KERNEL); total: 0 errors, 1 warnings, 146 lines checked ./patches/oom-split-out-forced-oom-killer.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Michal Hocko Signed-off-by: Andrew Morton --- mm/oom_kill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 66620b8d7ec712..d7fb1275e20069 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -651,7 +651,7 @@ EXPORT_SYMBOL_GPL(unregister_oom_notifier); */ bool force_out_of_memory(void) { - struct zonelist *zonelist = node_zonelist(first_memory_node, GFP_KERNEL); + struct zonelist *zonelist; struct task_struct *p; unsigned long totalpages; unsigned int points; @@ -659,6 +659,7 @@ bool force_out_of_memory(void) if (oom_killer_disabled) return false; + zonelist = node_zonelist(first_memory_node, GFP_KERNEL); constrained_alloc(zonelist, GFP_KERNEL, NULL, &totalpages); p = select_bad_process(&points, totalpages, NULL, true); if (p != (void *)-1UL)