From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx161.postini.com [74.125.245.161]) by kanga.kvack.org (Postfix) with SMTP id 27F456B005D for ; Mon, 19 Nov 2012 00:29:44 -0500 (EST) From: Josh Triplett Subject: [PATCH 18/58] mm: bootmem: Declare internal ___alloc_bootmem_node function static Date: Sun, 18 Nov 2012 21:27:57 -0800 Message-Id: <1353302917-13995-19-git-send-email-josh@joshtriplett.org> In-Reply-To: <1353302917-13995-1-git-send-email-josh@joshtriplett.org> References: <1353302917-13995-1-git-send-email-josh@joshtriplett.org> Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds , Andrew Morton , Johannes Weiner , "David S. Miller" , Tejun Heo , Gavin Shan , Yinghai Lu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Josh Triplett Both mm/bootmem.c and mm/nobootmem.c define an internal function ___alloc_bootmem_node. Nothing outside of those source files references that function, so declare it static in both cases. Signed-off-by: Josh Triplett --- mm/bootmem.c | 8 +++++--- mm/nobootmem.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index 434be4a..93eb8bd 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -747,9 +747,11 @@ void * __init __alloc_bootmem_node_nopanic(pg_data_t *pgdat, unsigned long size, return ___alloc_bootmem_node_nopanic(pgdat, size, align, goal, 0); } -void * __init ___alloc_bootmem_node(pg_data_t *pgdat, unsigned long size, - unsigned long align, unsigned long goal, - unsigned long limit) +static void * __init ___alloc_bootmem_node(pg_data_t *pgdat, + unsigned long size, + unsigned long align, + unsigned long goal, + unsigned long limit) { void *ptr; diff --git a/mm/nobootmem.c b/mm/nobootmem.c index 714d5d6..c4e22a1 100644 --- a/mm/nobootmem.c +++ b/mm/nobootmem.c @@ -319,9 +319,11 @@ void * __init __alloc_bootmem_node_nopanic(pg_data_t *pgdat, unsigned long size, return ___alloc_bootmem_node_nopanic(pgdat, size, align, goal, 0); } -void * __init ___alloc_bootmem_node(pg_data_t *pgdat, unsigned long size, - unsigned long align, unsigned long goal, - unsigned long limit) +static void * __init ___alloc_bootmem_node(pg_data_t *pgdat, + unsigned long size, + unsigned long align, + unsigned long goal, + unsigned long limit) { void *ptr; -- 1.7.10.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org