From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-a7-smtp.messagingengine.com (fout-a7-smtp.messagingengine.com [103.168.172.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18404274B42 for ; Tue, 10 Mar 2026 19:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773170893; cv=none; b=DfJFxafv3MjFCYaM9f0+StydTQLaWo3PrDTEhpVPxpebjBIAON/v79R4aXZqOgFoOZ0mkh7CzAeHwuf3WSL4I5GYnFqqpMmPdh1sloKGBNw3aIfulzhfpRhragB6GgLPJPiZOUNCbhoaoXTi+hIzBcJlnFwLBS1YDoGeyDS1H58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773170893; c=relaxed/simple; bh=holajwu7Me/V2Z9frTGmf2FdR91wLKk42r162OBE9K0=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=uP7dq0a6VHSjBlCKO6/9Sy551zcDecBHrh6Bc1umpykClmxrnaogZAo9F5MT9fzcbftxvDc8gfOJ1AKODP0Fcdcv+mdK2scigeQtfJCxPRB4YC4u2K8Ekbcs4F3mQh8xqdg5BgOpTGEniQo5zdMP6mPZ0tJwNjFNc2637rLNM1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=sYLbKdA5; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=pHq0wLSe; arc=none smtp.client-ip=103.168.172.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="sYLbKdA5"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="pHq0wLSe" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 5110AEC0B0C; Tue, 10 Mar 2026 15:28:11 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Tue, 10 Mar 2026 15:28:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1773170891; x=1773257291; bh=Kafwu2dgrb1DyjbyRl19d7gZA/agfWMZFG+k2/IJewA=; b= sYLbKdA5Ux6mBzH3DzXVndi3T48J5DXNXD1qyxQ73g+bAwttJwoEaoXqqT6m2+lf zKMLQ4XG9+k9MgHc0CO8E3eMDIpb7iSuffg4By1bcXQxRDUrsOAActN8gb3EbWzs xBayN0KmMMaDFcPLE8DViimrYNJJR8aL7BiV/z/6U5gT94oqm3/edDphDn9jTSPM 61IcOcKrctsaliFgNZgls8C7FLX2riAh8cX5+2rNQJaO9ID0f6CRCdKeqgtKHpfi byDI3PtFVbrvtp/EgF8RCxSAaf1VVkGDeQwm6sojJSo5N2QagC9zENVKRuz3k5Bs kfkeXKgorq756Fz3q14hfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1773170891; x= 1773257291; bh=Kafwu2dgrb1DyjbyRl19d7gZA/agfWMZFG+k2/IJewA=; b=p Hq0wLSeoaglWw3Jk4HqQUEMMiJ2gi6ESs5KkRMuv5CF/wznDq7ZteRlj6QEw0cZC H2k5KyFBRXMVJ/m4eXfxeaijloBuPQUEOuA3D1NgGSVUQv1JLfSb8Kfr65QxOdHO +HRU31x57hT10acAl1h4TgfJAldS87d9OPnfHw7AaqAiNHgQ+2oVHJWh1XzoroMq 8IgTZouFSZdB2MIBlE1oCjCHLu0AwFmgwueFC0r4CqCWzR1lAPegMPYxyATAipk5 T89zZaotfHd/nJe7DQHqLtOzI+v480+BxyU0aBFai7zyvGwwLLz6A65kV4IP28VY PCJu9tJv2p+W4Pdbxi1PQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvkedukeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrnhgu uceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrthhtvg hrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefhvdei necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnh gusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepuddtpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehjohhroheskegshihtvghsrdhorhhgpdhrtghpthhtoheprhhosg hinhdrmhhurhhphhihsegrrhhmrdgtohhmpdhrtghpthhtohepshhmohhsthgrfhgrsehg ohhoghhlvgdrtghomhdprhgtphhtthhopegrrhhnugeskhgvrhhnvghlrdhorhhgpdhrtg hpthhtohepthhglhigsehkvghrnhgvlhdrohhrghdprhgtphhtthhopeifihhllheskhgv rhhnvghlrdhorhhgpdhrtghpthhtoheprghkphhmsehlihhnuhigqdhfohhunhgurghtih honhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrrhhmqdhkvghrnhgvlheslhhishht shdrihhnfhhrrgguvggrugdrohhrghdprhgtphhtthhopehiohhmmhhusehlihhsthhsrd hlihhnuhigrdguvghv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 74C24700065; Tue, 10 Mar 2026 15:28:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: AVHaR-kDAB-J Date: Tue, 10 Mar 2026 20:26:40 +0100 From: "Arnd Bergmann" To: "Will Deacon" , "Arnd Bergmann" Cc: "Robin Murphy" , "Joerg Roedel" , "Andrew Morton" , "Thomas Gleixner" , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, "Mostafa Saleh" Message-Id: <3eab12fd-31d3-4a41-a0d9-61b0f6c8ada3@app.fastmail.com> In-Reply-To: References: <20260203162406.2215716-1-arnd@kernel.org> <20260203162406.2215716-2-arnd@kernel.org> Subject: Re: [PATCH 2/2] [RFC] iommu: io-pgtable-arm-v7s: avoid gcc-16.0.1 section mismatch Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, Mar 10, 2026, at 17:40, Will Deacon wrote: > On Tue, Feb 03, 2026 at 05:24:00PM +0100, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> gcc-16 has gained some more advanced inlining techniques that enable >> it to inline the dummy_tlb_add_page() and dummy_tlb_flush() function >> pointers into a specialized version of __arm_v7s_unmap: >> >> WARNING: modpost: vmlinux: section mismatch in reference: __arm_v7s_unmap+0x2cc (section: .text) -> dummy_tlb_add_page (section: .init.text) >> >> From what I can tell, the transformation is correct, as this >> is only called when __arm_v7s_unmap() is called from >> arm_v7s_do_selftests(), which is also __init. >> >> I have not come up with a good workaround, so this simply marks >> dummy_tlb_add_page() as not __init. Since there are currently only two >> files where this happens, that may be an easy way out. >> >> If anyone has a better idea for how to deal with that, let me know! > > Can we mark the dummy_* functions as 'noinline' instead? We shouldn't > have to keep the selftest code kicking around in memory after boot. I think that would work as well, but I'd have to test it properly, as the gcc behavior was already not what I had expected. Another option may be to take this a bit further and do the same for the arm_v7s selftest that Mostafa did in the lpae selftest with 7e06063a43d3 ("iommu/io-pgtable-arm-selftests: Use KUnit") and a3c24b6d7cd6 ("iommu/io-pgtable-arm-selftests: Modularize the test"). I think that would be the most logical step, but it's also beyond what I can do as a simple build fix. Arnd