From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with ESMTP id B48E39000BD for ; Thu, 22 Sep 2011 20:50:19 -0400 (EDT) From: H Hartley Sweeten Subject: [PATCH] mm/memblock.c: quiet sparse noise Date: Thu, 22 Sep 2011 17:49:21 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <201109221749.22433.hartleys@visionengravers.com> Sender: owner-linux-mm@kvack.org List-ID: To: Linux Kernel Cc: linux-mm@kvack.org, akpm@linux-foundation.org, yinghai@kernel.org, hpa@linux.intel.com, benh@kernel.crashing.org, tomi.valkeinen@nokia.com Quiet the following sparse noise in this file: warning: function 'memblock_memory_can_coalesce' with external linkage has definition warning: symbol 'memblock_overlaps_region' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten Cc: Andrew Morton Cc: Yinghai Lu "H. Peter Anvin" Cc: Benjamin Herrenschmidt Cc: Tomi Valkeinen --- diff --git a/mm/memblock.c b/mm/memblock.c index b7ed636..f40b22c 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -58,7 +58,8 @@ static unsigned long __init_memblock memblock_addrs_overlap(phys_addr_t base1, p return ((base1 < (base2 + size2)) && (base2 < (base1 + size1))); } -long __init_memblock memblock_overlaps_region(struct memblock_type *type, phys_addr_t base, phys_addr_t size) +static long __init_memblock memblock_overlaps_region(struct memblock_type *type, + phys_addr_t base, phys_addr_t size) { unsigned long i; @@ -267,8 +268,8 @@ static int __init_memblock memblock_double_array(struct memblock_type *type) return 0; } -extern int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, phys_addr_t size1, - phys_addr_t addr2, phys_addr_t size2) +int __init_memblock __weak memblock_memory_can_coalesce(phys_addr_t addr1, + phys_addr_t size1, phys_addr_t addr2, phys_addr_t size2) { return 1; } -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org