From patchwork Thu Dec 8 22:46:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Rientjes X-Patchwork-Id: 130250 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 28A8F10094F for ; Fri, 9 Dec 2011 09:47:02 +1100 (EST) Received: from mail-iy0-f179.google.com (mail-iy0-f179.google.com [209.85.210.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id EF0341007DA for ; Fri, 9 Dec 2011 09:46:42 +1100 (EST) Received: by iacb35 with SMTP id b35so3164657iac.38 for ; Thu, 08 Dec 2011 14:46:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=kAe7YhoorA2dEeH2oELcZ/T0khkVWZ+NxcJ9zo1int8=; b=rvcUcUHUKUCYQewR15TFpOFOggCniEm+LlTxGNHX96WsVLiDaEPArv0no8keMUxRh/ KFTB/K9YMgSVxFwR8BRg== Received: by 10.50.88.199 with SMTP id bi7mr782161igb.45.1323384400136; Thu, 08 Dec 2011 14:46:40 -0800 (PST) Received: by 10.50.88.199 with SMTP id bi7mr782118igb.45.1323384399992; Thu, 08 Dec 2011 14:46:39 -0800 (PST) Received: from [2620:0:1008:1201:be30:5bff:fed8:5e64] ([2620:0:1008:1201:be30:5bff:fed8:5e64]) by mx.google.com with ESMTPS id l28sm24560110ibc.3.2011.12.08.14.46.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Dec 2011 14:46:39 -0800 (PST) Date: Thu, 8 Dec 2011 14:46:37 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Benjamin Herrenschmidt , Paul Mackerras Subject: [patch] powerpc, mm: fix section mismatch for read_n_cells In-Reply-To: Message-ID: References: <1323371433.23534.8.camel@subratamodak.linux.ibm.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Cc: Mark Wizner , Naveed , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Manas k Nayak , Pavaman , Anton Blanchard , Vishu , Subrata Modak , "divya.vikas" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org read_n_cells() cannot be marked as .devinit.text since it is referenced from two functions that are not in that section: of_get_lmb_size() and hot_add_drconf_scn_to_nid(). Signed-off-by: David Rientjes --- arch/powerpc/mm/numa.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -406,7 +406,7 @@ static void __init get_n_mem_cells(int *n_addr_cells, int *n_size_cells) of_node_put(memory); } -static unsigned long __devinit read_n_cells(int n, const unsigned int **buf) +static unsigned long read_n_cells(int n, const unsigned int **buf) { unsigned long result = 0;