From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587Ab2KSFcH (ORCPT ); Mon, 19 Nov 2012 00:32:07 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38062 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753565Ab2KSFcE convert rfc822-to-8bit (ORCPT ); Mon, 19 Nov 2012 00:32:04 -0500 X-Originating-IP: 217.70.178.148 X-Originating-IP: 50.43.39.152 From: Josh Triplett To: Linus Torvalds , Andrew Morton , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Josh Triplett Subject: [PATCH 43/58] mm: Mark fallback version of __early_pfn_to_nid static Date: Sun, 18 Nov 2012 21:28:22 -0800 Message-Id: <1353302917-13995-44-git-send-email-josh@joshtriplett.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353302917-13995-1-git-send-email-josh@joshtriplett.org> References: <1353302917-13995-1-git-send-email-josh@joshtriplett.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mm/page_alloc.c defines a fallback version of __early_pfn_to_nid for architectures without CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID. Nothing outside of mm/page_alloc.c calls that function, so mark it static. This eliminates warnings from GCC (-Wmissing-prototypes) and Sparse (-Wdecl). mm/page_alloc.c:4075:118: warning: no previous prototype for ‘__early_pfn_to_nid’ [-Wmissing-prototypes] Signed-off-by: Josh Triplett --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5b74de6..d857953 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4072,7 +4072,7 @@ int __meminit init_currently_empty_zone(struct zone *zone, * was used and there are no special requirements, this is a convenient * alternative */ -int __meminit __early_pfn_to_nid(unsigned long pfn) +static int __meminit __early_pfn_to_nid(unsigned long pfn) { unsigned long start_pfn, end_pfn; int i, nid; -- 1.7.10.4