Received: from fhigh-b6-smtp.messagingengine.com (fhigh-b6-smtp.messagingengine.com [202.12.124.157]) (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 0C99C149C6F for ; Fri, 24 Jul 2026 15:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784906472; cv=none; b=WtR/T8RdcTThF3KtsroWkAZc/WpuKKEtvaI9eCEn8bmPLO/cXgTsjhCuluLtrnTI7nWnFuG7ZOfQ1Ur2aVo46gBjccskrYFVFSPDBiuJB05D0s5Uw0H5atf60UKXJRDvu2P7Ue9hj34ge+EgtIKbY586Dkr2amZDXgAZJQ1np3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784906472; c=relaxed/simple; bh=0rxcRTQbnD5KO1+6aZd1MKDAkyzNnjWLrsIg4YskDxU=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=Q3B9jiyznUB0/UdlCDwAr+9H5evw6dyU3BlyboASOad13fRoccp+Bu0k3tiEgusjVED2BBabDCQq9rPWmux1wnpdwTBUxsiJ+kF7yfvNwe2NDxEsKhPWW74y0tBBABh5/RUPIwDSb9fgcSBEvggSsYAHmHimVfCSdsDZKVPqQRA= 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=EXXJxclW; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=M/tB9AC7; arc=none smtp.client-ip=202.12.124.157 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="EXXJxclW"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="M/tB9AC7" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 11F5E7A01CD; Fri, 24 Jul 2026 11:21:10 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-04.internal (MEProxy); Fri, 24 Jul 2026 11:21:10 -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=fm2; t=1784906469; x=1784992869; bh=rRSIl1A5N5dmJOPRxcqNMJeqZnypo/3tU7vax6+TZ/4=; b= EXXJxclWsW7PpANnTjseg50ckCmtA0mNuQmSluN69kkbiB6ouMHw3JQlwcTVVLL+ cdOSkzgn7adH031Mo1MdZXdyMJ0Ydl/fU2msAoc+vbUfkMneFeAlhh7Xbs3ANsjN r3nkl4KzbNk8+g75gT3HG+oX5AY3+atkTB7ZH9n3b8ug/r4/xWuc2SdSD4Xbzdri 1nGT6skE+fOBArGJnhRf+isrjmxmbTkJ//n8Uj2zIEPV3SkwSjEXRHHHksIQmRla HNdOSnhzlzexSTmMnIHRuVd4kEjWmMIW9fOOx6ov1Ndv5q+V3+WP0+1ZSevZIaLC eXCLd6epgNsq+3qSVmF3Xg== 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=fm2; t=1784906469; x= 1784992869; bh=rRSIl1A5N5dmJOPRx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Th75wH2IRat0zeCQ X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id AF80E182007E; Fri, 24 Jul 2026 11:21:08 -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: AxEws4YcyasR Date: Fri, 24 Jul 2026 17:20:47 +0200 From: "Arnd Bergmann" To: "Jan Brzezanski" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org Message-Id: <143542ef-0bb5-4cff-b010-783271671514@app.fastmail.com> In-Reply-To: <20260724150559.3542098-1-jan.brzezanski@nokia.com> References: <20260724150559.3542098-1-jan.brzezanski@nokia.com> Subject: Re: [PATCH] x86/apic: Mark lapic_cal_handler() __noipa to avoid GCC 16 section mismatch Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, Jul 24, 2026, at 17:05, Jan Brzezanski wrote: > During APIC timer calibration lapic_cal_handler() is temporarily installed > as global_clock_event->event_handler and called from the timer interrupt > path. GCC 16's more aggressive interprocedural analysis specializes that > indirect call into a direct reference from the non-__init interrupt handler > to the __init lapic_cal_handler(), which modpost rejects: > > WARNING: modpost: vmlinux: section mismatch in reference: > __sysvec_apic_timer_interrupt+0x59 (section: .text) -> > lapic_cal_handler (section: .init.text) > ERROR: modpost: Section mismatches detected. > > The reference only exists during the __init calibration window, so it is > harmless at runtime, but the direct .text -> .init.text reference GCC 16 > synthesises is not allowed. Mark lapic_cal_handler() __noipa so the > compiler keeps it as its own init-section function instead of cloning it > into the interrupt path, while preserving the correct __init annotation. > > This is the same approach used for the equivalent GCC 16 section mismatches > in commit 4c9ad387aa2d ("iommu, debugobjects: avoid gcc-16.1 section > mismatch warnings"). > > Signed-off-by: Jan Brzezanski Looks good to me, lets hope we don't get a lot more of these. Acked-by: Arnd Bergmann