From nobody Sun Feb 8 20:32:54 2026 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C29986341 for ; Tue, 3 Feb 2026 00:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770077875; cv=none; b=AZ+5DCGU1WuQ1I/s6kwlrXITa4l5fvHH/jGCxBSoa0HRyxIJfuKwQndgGv8TorsxCzTh1TF3DBIKvRtZTnmij63x0h0sXO4Ca9oM7Yg2CgmNVbmHStjp/PQV5/TYvALxjTvx23zC+RMFuGzzs0vdq2LJSphy185FZd+zfXFFgQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770077875; c=relaxed/simple; bh=ZJVy6cPRC9mVjPwe70OyZwHOLgx0hBKchie2Ey+56o4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FpSaUJ0LK0MHZeDAjAgn4TOY6xTuxTXQTiMH1v9RRibvILD5OKp7mVE0WCF865qDr9atUdVE9b8L1JIzvFhJ5uvSzwBc37l9pXmgBCcAwOBAEmfsMXCins4zWvFtNjImP2Ma30BuKw6s2D5U8gljCQG9J/+N8yjOqZGVPHSLbyI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=X4h5okCy; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X4h5okCy" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2a09d981507so1789195ad.1 for ; Mon, 02 Feb 2026 16:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770077873; x=1770682673; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SZ1ws/HZ3fMtoPm4mMzkQZSOpt+7LENYkmppWHzFdqA=; b=X4h5okCysoBz/QiSq5/mM9++K1C1JQlcJxa107X0FYoJkks62N4Vo91K0uWw4MnW3Y 8e363Uw0SZ5YUckuF/CxOl97e9bS/2c1nm/qXPbEgW/NTN3genVWNb9eDDDXPvu1aLel 5W9fwyTBlskb0vjfws3Ccjg3eCQUuwmgHlaAOi4n5+soluSYXIzBfXVrWA4Dtl+sCcZU 6OxN/plGs059h4hIfKWlyXlRT6H/fgkz9qf25aACVQscHoTlAUBnp6tsP00Tm6vzgHqK /5+chZvsJkeDiYPwU0K5QMHeXbWpQUtEVft7JOyUsXG3DXvEljLqB+9tBhNIUM77hMpX M2kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770077873; x=1770682673; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SZ1ws/HZ3fMtoPm4mMzkQZSOpt+7LENYkmppWHzFdqA=; b=hVoP4Z++L02NG8pSxLCfUh1kU9s6a+O3BEt7VBxhMufLx9+H5DQyiH000lgSk6iIXD QIpv3AIfq82gtVDP4F4saNA2K7B5/vh77MYeR3ay3N3urgdq0WSD/HmwyeOm0BkkES6i OvkXEXjGxfNAwlqP7C9sQhfVVP1msXfY4EWtoRKjrmxNS79gHmQnz3bymTHwjywWSyB5 uXdkVzxWWpD7knYvdee1msF0yoB0yIdAXXLxri/KgiggZyNAjkxRR4RHXcXZ2/R7+YgG ceFMxCTFKmaMJmo48yKyCvEN3Zbdat5P0xUlGY30qsD1DI/Nfn2zFhlQugkqXxcal/sD 0+Rw== X-Forwarded-Encrypted: i=1; AJvYcCXjY268QMGL7VdEcQwWv6je4XVyfCgRvsH+Q6xomyP9R64bmjorOLv/iq2pr+Fx03ZA417O4QeqFieYNRw=@vger.kernel.org X-Gm-Message-State: AOJu0YzB1DX3Y3ghTAeAzcKJ8ooGqqoGM2Q6ax+7UeUOchjDXj+3wfFB 4WEQIne0GmqYTkRSZqKfbsUQbvryX1V9nlNepARr5V+05r6sJ8JhGU0z X-Gm-Gg: AZuq6aKeZhyHSETPTz70oKGq7nQO0mXpe9ZpGW8q8rrDfXO0dewpSrnOo6hifWHv4wz Nvkfyv1P8+eUgndslQVp1QNM3aaulClEpLmsCtyjXVpZLaMmIsC6xXSBMfukD/IV+ijEjibC59g lC6acxcvZ6XeVdFF062DlxxvRAMkT7MmhU1BBOGWAt4GTVSZ8KelEUGHJAyDgISsizg4LmYibpT 7CvFpvveubPuH1qZy2GgGie956kvoksL7uXMVH4n51yJxqVV8IoC4Qk043K/Z3TLmsp3gFw/zQu hSvdG72EG8M/OGV23nHrV79ldnffZRmabea//Z2DgyjeIvRMrb4V1nXI/xkUltcHP85iDt0gJvU JCQ04CGf8TvE79t0ANKMLHiNPbD44hWWcf/+froKM2RF/tmU6fs++OGKSPs9esqNgORAt7hcX59 lD+P4= X-Received: by 2002:a17:903:2ecd:b0:2a7:b412:6cc8 with SMTP id d9443c01a7336-2a92458de40mr8592055ad.1.1770077873450; Mon, 02 Feb 2026 16:17:53 -0800 (PST) Received: from misys ([58.120.241.145]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b6e4110sm149973765ad.84.2026.02.02.16.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 16:17:53 -0800 (PST) From: HeeSu Kim To: miguel.ojeda.sandonis@gmail.com Cc: a.hindborg@kernel.org, aliceryhl@google.com, bjorn3_gh@protonmail.com, boqun@google.com, charmitro@posteo.net, dakr@kernel.org, gary@garyguo.net, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, lossin@kernel.org, nathan@kernel.org, nsc@kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, tmgross@umich.edu, HeeSu Kim , stable@vger.kernel.org Subject: [PATCH v3] rust: Makefile: bound rustdoc workaround to affected versions Date: Tue, 3 Feb 2026 18:17:31 +0900 Message-ID: <20260203091731.2731080-1-mlksvender@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The `-Cunsafe-allow-abi-mismatch=3Dfixed-x18` workaround was added to handle a rustdoc bug where target modifiers were not properly saved [1]. This bug was fixed in Rust 1.90.0 [2]. Restrict the workaround to only apply for Rust 1.88.x and 1.89.x versions that are affected by the bug, preserving ABI compatibility checks on newer compiler versions. Link: https://github.com/rust-lang/rust/issues/144521 [1] Link: https://github.com/rust-lang/rust/pull/144523 [2] Suggested-by: Gary Guo Link: https://lore.kernel.org/rust-for-linux/DG4JM9PU51M0.1YRGM9HVTY24U@gar= yguo.net/ Cc: stable@vger.kernel.org # Useful in 6.18.y and later. Signed-off-by: HeeSu Kim --- Changes in v3: - Remove Fixes: tag (this is a feature, not a fix) - Use full URLs with Link: tags instead of GitHub-style references - Add Link: to lore.kernel.org for Suggested-by attribution - Add Cc: stable for potential backporting to 6.18.y Changes in v2: - Change approach: bound to affected Rust versions instead of ARM64-only (the flag is simply ignored on non-ARM64 architectures) rust/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/Makefile b/rust/Makefile index 5c0155b83454..55e2dc865207 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -136,7 +136,8 @@ pin_init-flags :=3D \ # `rustdoc` did not save the target modifiers, thus workaround for # the time being (https://github.com/rust-lang/rust/issues/144521). -rustdoc_modifiers_workaround :=3D $(if $(call rustc-min-version,108800),-C= unsafe-allow-abi-mismatch=3Dfixed-x18) +# The bug was fixed in Rust 1.90.0, so only apply for 1.88.x and 1.89.x. +rustdoc_modifiers_workaround :=3D $(if $(call rustc-min-version,108800),$(= if $(call test-lt,$(CONFIG_RUSTC_VERSION),109000),-Cunsafe-allow-abi-mismat= ch=3Dfixed-x18)) # Similarly, for doctests (https://github.com/rust-lang/rust/issues/146465= ). doctests_modifiers_workaround :=3D $(rustdoc_modifiers_workaround)$(if $(c= all rustc-min-version,109100),$(comma)sanitizer) -- 2.52.0