Message ID | 20230223034258.12917-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp114525wrd; Wed, 22 Feb 2023 20:19:47 -0800 (PST) X-Google-Smtp-Source: AK7set9JCVWx/1rBS4i5icKxVFD7mkKKT1LuL4XQ+Fk3i8ovhxAt5cQBmH+5YcGvljLQ8e2sOY3H X-Received: by 2002:a05:6a00:2e83:b0:5d9:bfc9:a4f with SMTP id fd3-20020a056a002e8300b005d9bfc90a4fmr2506723pfb.3.1677125987564; Wed, 22 Feb 2023 20:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677125987; cv=none; d=google.com; s=arc-20160816; b=j1ulyECCq4VH8GNrrO3n+nLj3bCPvNIaDQT60P7dbo6V/O5oyuftTIeaQiZZ82i4Xl /Rqh/rR8stj2DJsn4oapaIcGc/y1Kb3qdcu/kiur7KJTn53aOtQPfccEKE5SRmiUgkLN 6evFPsZ30Q/yFw2PJdlFfD9HGiIVgA2eVxuM5K6kJ4apiLdG9gSvLIptnvM59bx7tP1O fgnGwgPrq7d5bfmI1Imb3oLqhPfJC8XA6WCD/fVnHPjBAoNLXO49bxvdDu9bPloWEpde dH5RO7okXL5RKAw/TS0BHbhp4gzgJIzNkYTagxCIgV0zloaVrNLWC+xNX43CelIPOESH K+TA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hmo26Yaz4/OgIlJO+A/BSFuAnOExXDFqNGdQ3D4u0/I=; b=aG9/UrFF+jJzbyvkryY6ZzyisODxJ3gGc7xNvwcuzGMw8isItds4VGl1P9DXaVR4k1 Kuat5lyQZf4CfR68IaB/jvSFoaYVtuFB9vXvxWzfZep7npEgHy4eZCEcyRn+w2/NCeN9 OexX4avMDTRutCMQ0LxnfvRqO5V7Dn0oee4tSSvJnKYLPwwbEbH0cPQRk+7cf34mXWJg oRcNpsQORbqfkkfmigoMHqtC70XONkslIMhC5fBudwFAzsuQ5jSNMiifSpFnDNDLbXIR hsoyjvmiBnSB1hv2IdxDNsYaxC0VLKoTSPsHwP4OrX5jI+oZyl87F694lqjHTYiCUiuS IvEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=IMySeMly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f187-20020a6238c4000000b005a8ec89de5fsi12271530pfa.236.2023.02.22.20.19.34; Wed, 22 Feb 2023 20:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=IMySeMly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbjBWDnE (ORCPT <rfc822;cambridge8321@gmail.com> + 99 others); Wed, 22 Feb 2023 22:43:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbjBWDnD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Feb 2023 22:43:03 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53F7196B5; Wed, 22 Feb 2023 19:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=hmo26Yaz4/OgIlJO+A/BSFuAnOExXDFqNGdQ3D4u0/I=; b=IMySeMlyjKvdxKPat0cMJbpSw5 gxT3HnID8AZscU/FBB25ZGvH7isezqZ93Z7VI8MUf4SvfZ5JjvVYPxOJjNSnxhhIdeuh9lIodWBL5 RomE/pjcI5EiBXwPQruC2KXIDxUFS3JAX3XzXCFoVYfAHjvj5bDJa1Hh5CbCd+OLotPWupbxW9G5j 1ulIZXsCOsVM8Ulh0Fb9gGxS29m6fJWpku84diJV6bOocYT6TuHJNOLAdQ46jgaMHrWg6SGcVIuS8 ZL2sDq0WbeeoIj0fyoQ+IZru9G1UvXjjy/9lNOKI8wZanlnUOE1GnzHM+YjoSviRjgHMkAt3OqYAS sDjC84Zw==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV2VX-00EtMS-5C; Thu, 23 Feb 2023 03:42:59 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Andrew Morton <akpm@linux-foundation.org>, Tony Luck <tony.luck@intel.com>, linux-ia64@vger.kernel.org Subject: [PATCH] ia64: mm/contig: fix section mismatch warning/error Date: Wed, 22 Feb 2023 19:42:58 -0800 Message-Id: <20230223034258.12917-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758594059640593754?= X-GMAIL-MSGID: =?utf-8?q?1758594059640593754?= |
Series |
ia64: mm/contig: fix section mismatch warning/error
|
|
Commit Message
Randy Dunlap
Feb. 23, 2023, 3:42 a.m. UTC
alloc_per_cpu_data() is called by find_memory(), which is marked
as __init. Therefore alloc_per_cpu_data() can also be marked as
__init to remedy this modpost problem.
WARNING: modpost: vmlinux.o: section mismatch in reference: alloc_per_cpu_data (section: .text) -> memblock_alloc_try_nid (section: .init.text)
Fixes: 4b9ddc7cf272 ("[IA64] Fix section mismatch in contig.c version of per_cpu_init()")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-ia64@vger.kernel.org
---
arch/ia64/mm/contig.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -- a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c --- a/arch/ia64/mm/contig.c +++ b/arch/ia64/mm/contig.c @@ -77,7 +77,7 @@ skip: return __per_cpu_start + __per_cpu_offset[smp_processor_id()]; } -static inline void +static inline __init void alloc_per_cpu_data(void) { size_t size = PERCPU_PAGE_SIZE * num_possible_cpus();