From patchwork Thu Feb 23 03:42:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60779 Return-Path: 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 + 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 ); 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 To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Andrew Morton , Tony Luck , 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 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: 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?= 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 Cc: Andrew Morton Cc: Tony Luck 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();