Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821AbYC3Wxz (ORCPT ); Sun, 30 Mar 2008 18:53:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754633AbYC3Wxo (ORCPT ); Sun, 30 Mar 2008 18:53:44 -0400 Received: from smtp4.pp.htv.fi ([213.243.153.38]:54145 "EHLO smtp4.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632AbYC3Wxn (ORCPT ); Sun, 30 Mar 2008 18:53:43 -0400 Date: Mon, 31 Mar 2008 01:53:31 +0300 From: Adrian Bunk To: linux-kernel@vger.kernel.org Subject: [2.6 patch] mm/oom_kill.c: proper externs Message-ID: <20080330225331.GE28445@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1667 Lines: 57 This patch adds proper extern declarations for three variables in include/linux/oom.h Signed-off-by: Adrian Bunk --- This patch has been sent on: - 25 Feb 2008 include/linux/oom.h | 4 ++++ kernel/sysctl.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 5ac59cd3de28fdad038576ebef6a2ac41c5d7c69 diff --git a/include/linux/oom.h b/include/linux/oom.h index 3852436..f76bf07 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -23,6 +23,10 @@ enum oom_constraint { CONSTRAINT_MEMORY_POLICY, }; +extern int sysctl_panic_on_oom; +extern int sysctl_oom_kill_allocating_task; +extern int sysctl_oom_dump_tasks; + extern int try_set_zone_oom(struct zonelist *zonelist); extern void clear_zonelist_oom(struct zonelist *zonelist); diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8b7e954..ffb687c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -64,9 +65,6 @@ extern int C_A_D; extern int print_fatal_signals; extern int sysctl_overcommit_memory; extern int sysctl_overcommit_ratio; -extern int sysctl_panic_on_oom; -extern int sysctl_oom_kill_allocating_task; -extern int sysctl_oom_dump_tasks; extern int max_threads; extern int core_uses_pid; extern int suid_dumpable; -- 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/