From nobody Wed Sep 10 23:58:56 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A173EC61DA4 for ; Thu, 23 Feb 2023 03:43:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbjBWDnF (ORCPT ); Wed, 22 Feb 2023 22:43:05 -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 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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_d= ata (section: .text) -> memblock_alloc_try_nid (section: .init.text) Fixes: 4b9ddc7cf272 ("[IA64] Fix section mismatch in contig.c version of pe= r_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()]; } =20 -static inline void +static inline __init void alloc_per_cpu_data(void) { size_t size =3D PERCPU_PAGE_SIZE * num_possible_cpus();