Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3406612pxy; Mon, 26 Apr 2021 00:36:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEsxC1s7zWrRNN9GJnWI/zHUdNdM5gY+1pL0otNtDFNvnJ6qhyiCW6c1G6YdExLv1pXF/7 X-Received: by 2002:a17:902:c94f:b029:ec:85bd:1f24 with SMTP id i15-20020a170902c94fb02900ec85bd1f24mr17513462pla.4.1619422565465; Mon, 26 Apr 2021 00:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619422565; cv=none; d=google.com; s=arc-20160816; b=UgWHpg48XoJHei1WdtUrLMMz6yYZkCduzkDaCxqNPwVPQcfcUf5DkFUOxDRBSBT0fQ we1bbSEHZeHQ361Ktl15O6I/wXhEMapsh+vjF2Xlnm1awmLJ0bbSZ4AcqPOhFn4rgHDI k7N1f40c6RnRe5miS5F+lL2YqQ4ojFdpTYEqLcBPv/Fj9mnvTgTWaCqYINRcWczfH0o8 wrUYHAmjKneXkxksoK3P5D1M28f5s30I+3IWVv9nppihaoDwLIBKdhyjZirT6vzJ/MWt zcjtOfJNsH05/INKTH2hAivLUv0Y90qLVWEH3oN9ub+ZJpQsnOkR6m5n5J9Be52HV7O4 e4mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m6S5a27XwiY+zw2zQj/wf9pW+FKt1GxPvhxiAfqirjc=; b=fOFmNEIDWcVJwsbna2SHrPvbeiBt/hwEM9RRhBgOaHVTzLb98oFG5IvpquxSDmItx/ WLNzZPs93RNykijEE3SNqBx/XxPVnk3tgQzZd/LiL6t7CJ4lkgM3Zy9wTFZBAG6rZHuN UZQgxHlCm/KcmZmmm2YHLmPQAe1g6k9Ra1lzDJNJMwg2Oc15YoUo46PtExOtPN6W2gg4 n7INIirJ+wwIYqMoO4SFRBxY5BdFDk4TMfxmwD7pH7gu85Kpt46/wIWQ51zolK71KU7M 3oOSqAVV+1b0dnkzdNHR+6Il8FDigSwk8CJk2cHP9baYMvm4423NJUAGj1XSjkVDSKd6 YW7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MnnqOkOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si16831932pla.114.2021.04.26.00.35.53; Mon, 26 Apr 2021 00:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MnnqOkOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232547AbhDZHcz (ORCPT + 99 others); Mon, 26 Apr 2021 03:32:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:44194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232499AbhDZHcr (ORCPT ); Mon, 26 Apr 2021 03:32:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55B4F6105A; Mon, 26 Apr 2021 07:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619422325; bh=07caHPhzZxVAkO5mCF9RtGW81v4eRFptXroX2W2y9/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MnnqOkOyfki57b4OW4Qq1o+z/nhJ6u9EFZFOWGlsdNRm8ZOe01ury57N4AfagL3RT 8cSERgWYrOjs0ALmq4eBXCl3rQnPW6sGrJpeCzoQ2qTFJxkQE2OdnngS/td2Cc+q+G uS1GPrEYeyxTW0gwMO3+GsxHsNhn8YcTmgvmsqgs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Mike Rapoport , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.4 28/32] ia64: fix discontig.c section mismatches Date: Mon, 26 Apr 2021 09:29:26 +0200 Message-Id: <20210426072817.512740533@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210426072816.574319312@linuxfoundation.org> References: <20210426072816.574319312@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit e2af9da4f867a1a54f1252bf3abc1a5c63951778 ] Fix IA64 discontig.c Section mismatch warnings. When CONFIG_SPARSEMEM=y and CONFIG_MEMORY_HOTPLUG=y, the functions computer_pernodesize() and scatter_node_data() should not be marked as __meminit because they are needed after init, on any memory hotplug event. Also, early_nr_cpus_node() is called by compute_pernodesize(), so early_nr_cpus_node() cannot be __meminit either. WARNING: modpost: vmlinux.o(.text.unlikely+0x1612): Section mismatch in reference from the function arch_alloc_nodedata() to the function .meminit.text:compute_pernodesize() The function arch_alloc_nodedata() references the function __meminit compute_pernodesize(). This is often because arch_alloc_nodedata lacks a __meminit annotation or the annotation of compute_pernodesize is wrong. WARNING: modpost: vmlinux.o(.text.unlikely+0x1692): Section mismatch in reference from the function arch_refresh_nodedata() to the function .meminit.text:scatter_node_data() The function arch_refresh_nodedata() references the function __meminit scatter_node_data(). This is often because arch_refresh_nodedata lacks a __meminit annotation or the annotation of scatter_node_data is wrong. WARNING: modpost: vmlinux.o(.text.unlikely+0x1502): Section mismatch in reference from the function compute_pernodesize() to the function .meminit.text:early_nr_cpus_node() The function compute_pernodesize() references the function __meminit early_nr_cpus_node(). This is often because compute_pernodesize lacks a __meminit annotation or the annotation of early_nr_cpus_node is wrong. Link: https://lkml.kernel.org/r/20210411001201.3069-1-rdunlap@infradead.org Signed-off-by: Randy Dunlap Cc: Mike Rapoport Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/ia64/mm/discontig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c index 878626805369..3b0c892953ab 100644 --- a/arch/ia64/mm/discontig.c +++ b/arch/ia64/mm/discontig.c @@ -99,7 +99,7 @@ static int __init build_node_maps(unsigned long start, unsigned long len, * acpi_boot_init() (which builds the node_to_cpu_mask array) hasn't been * called yet. Note that node 0 will also count all non-existent cpus. */ -static int __meminit early_nr_cpus_node(int node) +static int early_nr_cpus_node(int node) { int cpu, n = 0; @@ -114,7 +114,7 @@ static int __meminit early_nr_cpus_node(int node) * compute_pernodesize - compute size of pernode data * @node: the node id. */ -static unsigned long __meminit compute_pernodesize(int node) +static unsigned long compute_pernodesize(int node) { unsigned long pernodesize = 0, cpus; @@ -411,7 +411,7 @@ static void __init reserve_pernode_space(void) } } -static void __meminit scatter_node_data(void) +static void scatter_node_data(void) { pg_data_t **dst; int node; -- 2.30.2