From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.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 C66E022173D for ; Sun, 19 Apr 2026 14:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607561; cv=none; b=CQPaV+xi8l0oqq7yfLTrI+s0qM5RhHGBY4uccAXRYO5Y3i/eMcN30dCEqczp1Cn9wpSAi6Ov7WKKChtXyY1T+UCLPQQzdjPCCXowPQHYcAfoBheL9gLpWS/YBbMHDbDihbn69frIZWy7JGMdT8xjlUf3IAfXeK1RfKQQ5lKPzJM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607561; c=relaxed/simple; bh=6GSGT8vDPiYQI4YGHLluie648X2Cni+IOPr/N/E3cXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lmkcc4n10zDJFct7Uq11qlFuRpCdTCmZnk29G5y6utfljtG8MiNGJJa+ywCdDEmwARwxb2zkh8olx+J+/kpSn5wVr8kXMyV7CeqqIHAo1g4tjPUbSCz+xKmO9rAfW/uaRnCa+BG3SxOZdgxW1ZY0ZCrSuRqs8ZZBhXose4eOeAM= 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=CIk/qiH+; arc=none smtp.client-ip=209.85.210.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="CIk/qiH+" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-82f8893bff3so974143b3a.2 for ; Sun, 19 Apr 2026 07:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776607560; x=1777212360; 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=0MAzEojvrGMWtL4vp0RLBqclc7WFfe3ybUbm3n1AbJ0=; b=CIk/qiH+TtF0CDrdlL6GN5tZFW+JfcNKbAMOrgExu4gssLHfpm7rGJ2VwZ+X+PHCeB o+jI+q8/0UXQDbsVLK76hgydBOHvPBv4GyJSUzwTLBM6SPbLEXr1GH3nsMBHcRxgBZSz mtVjmqrUtYE2IPCDZw8bn50a7o0tZHI2DIG/ZF99xTU/nyizP2E99EzgeKAGp+LCcqGi TibV+NbWOjGeunHYdErng2shKrbwh86K0IuFv1axiErhSMuCY9OAMBMf9c5OCyGE0IiJ v9K9BNx7IVx+369r71PiVOmrIzs1dT46Z+j6K0msJVksbD2zmqnoJpypeyIdbZyN0BXI LTkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776607560; x=1777212360; 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=0MAzEojvrGMWtL4vp0RLBqclc7WFfe3ybUbm3n1AbJ0=; b=Q72yrmjeKWS3snkUdrDABw2S+1Eukj6ic2CPqbm/MJk/p/a7br9VMbrJK3aRbAgdYr 2NnVtoRMvSkcj7z5DxLVcMaPPpRFBmrbaW0Rw1DO8mrGrp5whqCYCa2z/GzgnL6I+vtB FWVxUrwVZxuPBYbSzSv0FLGUMkC8a5u7PXpotyXbZKpGjI9ABBUcHTcXlUbbhPU+WNfo +VhJIoJ9kbFaV0qpTUJ162PhZNuA87WpGX8UKyYW1wulB/mmK9NcjGd5DeWPkU+KhIis dKwoDciRd/yAuML1aUv+sjBFRlnayoTWFfXr8BXCNOP4R0QV/ud4cW1PJmOULyPqSPjD rUgw== X-Forwarded-Encrypted: i=1; AFNElJ+96eid7GQ0jfCsjFiiKY3tTXPNsHSzvgKN7TKEsmutr3ymIrFqFh4aAXRH9g4XPKL1RjDOYE9s7H29I7c=@vger.kernel.org X-Gm-Message-State: AOJu0Yxr6KDvN/RSACtPy7/AjGQus/vK2FiikMIxF5xuD9fUuYqFiZdj AnnpMu9VniVqnsQDCI1PzJvNsS0/JowuOQHAvdgHy/wfgz4brJPrNBVm X-Gm-Gg: AeBDieslQDOW5foDDPoab/E8ameJkBJYJrZ9mhunvAAHwK6GUddk8V/VtGm6+UNleLc duH0pxgarmvWKJoKXsWVT7c1gjQykJX4+89T2idmgg7aDqhM/RiT51tFHGEIGoqEh9s2cq1v1og p28irStQHJfgGJK9YhMrMn1UcEk+WfcrjvYQxSkFctlWYbMt6NVyoTrwFjNBbwytaXymSy//rjs TbXX1frMIyETzjelitV2hmyuijaBJNO2+GuluVavdtXBv3+5GJZQNOKiIAQhHseaNRJSMEQOVQ6 MLXTEudY0XHgwrxaucMPyhXDmuT22SkoTfjUT2mJPN0fCmOyDo7esNcOJbIA/SJkxzaJnQImdTn 2kwchI0P1j3QOmyE3z/i3FmtUvoOMjMcYZ5mCMGTlluXXLsCXO6wLjX1kDKBVvAJffHW1M+Hlnb UlllibAIZh9yXr6oRY9ZbIToLPqw== X-Received: by 2002:a05:6a00:91d6:b0:82f:9985:d4a1 with SMTP id d2e1a72fcca58-82f9985d570mr6233840b3a.24.1776607559756; Sun, 19 Apr 2026 07:05:59 -0700 (PDT) Received: from misys ([58.120.241.145]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f8ebe6642sm9667974b3a.45.2026.04.19.07.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2026 07:05:59 -0700 (PDT) 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, mlksvender@gmail.com, nathan@kernel.org, nsc@kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, stable@vger.kernel.org, tmgross@umich.edu Subject: [PATCH v6 0/2] rust: Makefile: bound rustdoc workaround to affected versions Date: Sun, 19 Apr 2026 23:05:52 +0900 Message-ID: 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: 8bit This series bounds the `-Cunsafe-allow-abi-mismatch=fixed-x18` workaround in `rust/Makefile` to the compiler versions that are actually affected by the rustdoc (#144521, fixed in 1.90.0) and doctests (#146465, fixed in 1.92.0) target-modifier bugs, so that ABI compatibility checks run again on newer toolchains. Changes since v5 [1] [2]: - Patch 1/2 is v5 1/2 renamed from `rustc-max-version` to `rustc-lt-version` per Miguel's plan to rename on apply [3] and to avoid the `99` form. Nathan's [4] and Nicolas' [5] Acked-bys from v5 1/2 are carried over as Miguel indicated they would be preserved through the rename. - Patch 2/2 reworks v5 2/2 to fix the doctests case that Miguel pointed out [6]: the v5 form reused `$(rustdoc_modifiers_workaround)` as a prefix, so on rustc >= 1.91 the doctests variable expanded to a stray `,sanitizer`. Use Miguel's suggested explicit `ifeq`/`else ifeq` layout with `rustc-min-version` + `rustc-lt-version` combined inline, so each affected range is visible on its own line. The `rustc-version-range` macro Miguel mentioned as an "improvement on top" [3] is intentionally left out of this series; I will send it as a separate follow-up patch once this lands, as Miguel suggested. Tested by building `make rustdoc` and `make rusttest` on rustc 1.93.0: both succeed with the workaround disabled (empty expansion), confirming the bugs really are fixed in 1.92+ and no regressions are introduced. Macro expansion was also spot-checked across simulated rustc versions 1.87 through 1.93 to verify each range matches the expected flag value. [1] https://lore.kernel.org/rust-for-linux/20260205131522.2942928-1-mlksvender@gmail.com/ [2] https://lore.kernel.org/rust-for-linux/20260205131815.2943152-2-mlksvender@gmail.com/ [3] https://lore.kernel.org/rust-for-linux/CANiq72n-z0v_deUVPWeg1h0c6KQ+r6xfNDf72o29_0yy6KbqGA@mail.gmail.com/ [4] https://lore.kernel.org/rust-for-linux/20260203221224.GA2703490@ax162/ [5] https://lore.kernel.org/rust-for-linux/aYS9bRugxr1rUvA3@levanger/ [6] https://lore.kernel.org/rust-for-linux/CANiq72nnuKJaKrxrut6+noR13PUiSoWWyyp-pGx-fe_2O6ayFA@mail.gmail.com/ HeeSu Kim (2): kbuild: add rustc-lt-version macro rust: Makefile: bound rustdoc workaround to affected versions rust/Makefile | 18 ++++++++++++------ scripts/Makefile.compiler | 4 ++++ 2 files changed, 16 insertions(+), 6 deletions(-) -- 2.52.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 7F3CD350D58 for ; Sun, 19 Apr 2026 14:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607579; cv=none; b=TAK8UUkzXJTh18t28HIHe5Fa2KN6g2f7vU2RebVOrbkAgtlqbIU+NwnocdnFOGHQbT3x7Dg5fBncgvWdCRrZT+DA0maC4zHnwrq8NqyF92XcwbDVoY01+Oql09VZYJCYtAzGL6LR8mS6sy1JvcNuFUPHqb5/geiCpeuPrBwB84A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607579; c=relaxed/simple; bh=6GSGT8vDPiYQI4YGHLluie648X2Cni+IOPr/N/E3cXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lz59tWegtnMxdE3iA+Axq+XFnjzRJZq8sB+NTHSZZHv3T3p/6ha+d27Lh4Mh8TodVWRjAFyREenaypLqrAQXzOXynX+lwp3al/VnWGTWMfPH9rjHcAKtrTGYJ7vcWJGeyaNJGYKimhu9CHd0i+iZm8DFexh+yK5QpF2lcXZPbZw= 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=S+wifKV2; arc=none smtp.client-ip=209.85.216.49 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="S+wifKV2" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-35fc0d7c310so1461798a91.1 for ; Sun, 19 Apr 2026 07:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776607578; x=1777212378; 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=0MAzEojvrGMWtL4vp0RLBqclc7WFfe3ybUbm3n1AbJ0=; b=S+wifKV2ocGrbF//7oJUX8XtbvZxx+YH/TjDfTDx3jpnwTHln41BITOaycAUKXCqgJ OMwAN1vN34i2CttY5WoWULqeuIQy4A9JtCaK0gFuW/O6awKA9Cghwv9v5DUAPKtpkLll VN3RS1B5e11O4T/D+oAxh5oFgETCgd3NKB42+J+1vvcjSWnjeXWtkjHpXkjoEwQztbxn blgoVh9296avlWaFst+pCaC/p7wrqT33VETAopPQGWaQO0v0HNsz50y5v+30Y9jXohqg iKDbhwHOpYkKODT92Vl6e1kisN1NW7Vt+ZMsDGJDRKcmTc/kSlpVyREVVkYfD2DcFTZs kcJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776607578; x=1777212378; 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=0MAzEojvrGMWtL4vp0RLBqclc7WFfe3ybUbm3n1AbJ0=; b=Pmc9tKwN4TNqDmRemCakGxkh1E9qAutp/cymAsz1bjrg6AHu5cqFeyx7o1MHAf1U2T KY3x7/wtM65lyKHrxpX76wiRTs9kEFOhN05d9ttKocVagduUjMm98A+OJgdu3LmUIret XCIW9cpIf6cEjIYnGkc/bef1KM1ztBZPbcr9RMbxU26F4NOd+hPUJppmHZMXleuDoRTK 8cEzXCfk9HSNzYLJDkZ/D0Mop7idsdYedrsH2TlCOFBUv4I85m+gGkeSRUccG9Mw5gHz /xGak/WKz6CaayGrTS6FMOHR6HCIMP7DNsaLVrxOd47ynHC+bACiLQJZUsejS+jikenh 7M4A== X-Forwarded-Encrypted: i=1; AFNElJ+dBrwB5LaHfLRDGZeIvwZhSPmoEhrcxq7sPddD0DwAbfBeMgiNH14AEbwfcFl6HBxyGvjhVSaM9pCAhbs=@vger.kernel.org X-Gm-Message-State: AOJu0YylL1vnDpTuJilHZUFKKHILTw54TP7H93eXEbiu33Yiz53SDlp+ zeM/Rr67eFtdrBrg3QjXNXzPgKg13VaEDE66J5Ya6TK8hHNipo9zDXx8 X-Gm-Gg: AeBDiesx3TVWvhwlm55UNsUwYu60Op+MLpAs+wIpjo9NWYm+zH5dmvi7G+S/A1W+yUM wij+g23z3g4JCAHpZGkMYHXTXTZ5koRHR1PNIArePG6Xi52TrtmB59l4aE21PPJTK0Pxf/L2XKW /7gPKPe7AR20TL/7Rh1uqi/eKqxPjQIXL+xNyH8rR6CUxWwUCMDz8GUPUmiXVOeNm2myWTwUg6c IWjM4sOo2XenSzpkX98+rPoLn0tFuhudEfSWujR/8xGa3xE8HjQ8eEvVcfa+CFczJRdY7nSPUIV fYVrGQCbajeJNeK7B/MuKEXNir8Qouo+PDhrkznQYIhfe5R+4WcKAVORb9sgB+oxEhIRC/4sc9y Ahn5tt6g65/iH9msbn3TmtECYbXH1cufSF1TkVpElYAMU83MGqwvQDovGDjfXrDtBmqIgYxs9Jc Sp6TeslP4FQOoxCjd8kckoFzPB1dAP74YHyWL7 X-Received: by 2002:a17:90b:5112:b0:35c:30a8:32a with SMTP id 98e67ed59e1d1-361403f4e8cmr9215960a91.9.1776607577877; Sun, 19 Apr 2026 07:06:17 -0700 (PDT) Received: from misys ([58.120.241.145]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36141898ebasm7718121a91.7.2026.04.19.07.06.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2026 07:06:17 -0700 (PDT) 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, mlksvender@gmail.com, nathan@kernel.org, nsc@kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, stable@vger.kernel.org, tmgross@umich.edu Subject: [PATCH v6 0/2] rust: Makefile: bound rustdoc workaround to affected versions Date: Sun, 19 Apr 2026 23:06:11 +0900 Message-ID: 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: 8bit Message-ID: <20260419140611.MNRDDx-MquqrXOCfyIxnilRgBh_JE8sZaFPvSNqmkLk@z> This series bounds the `-Cunsafe-allow-abi-mismatch=fixed-x18` workaround in `rust/Makefile` to the compiler versions that are actually affected by the rustdoc (#144521, fixed in 1.90.0) and doctests (#146465, fixed in 1.92.0) target-modifier bugs, so that ABI compatibility checks run again on newer toolchains. Changes since v5 [1] [2]: - Patch 1/2 is v5 1/2 renamed from `rustc-max-version` to `rustc-lt-version` per Miguel's plan to rename on apply [3] and to avoid the `99` form. Nathan's [4] and Nicolas' [5] Acked-bys from v5 1/2 are carried over as Miguel indicated they would be preserved through the rename. - Patch 2/2 reworks v5 2/2 to fix the doctests case that Miguel pointed out [6]: the v5 form reused `$(rustdoc_modifiers_workaround)` as a prefix, so on rustc >= 1.91 the doctests variable expanded to a stray `,sanitizer`. Use Miguel's suggested explicit `ifeq`/`else ifeq` layout with `rustc-min-version` + `rustc-lt-version` combined inline, so each affected range is visible on its own line. The `rustc-version-range` macro Miguel mentioned as an "improvement on top" [3] is intentionally left out of this series; I will send it as a separate follow-up patch once this lands, as Miguel suggested. Tested by building `make rustdoc` and `make rusttest` on rustc 1.93.0: both succeed with the workaround disabled (empty expansion), confirming the bugs really are fixed in 1.92+ and no regressions are introduced. Macro expansion was also spot-checked across simulated rustc versions 1.87 through 1.93 to verify each range matches the expected flag value. [1] https://lore.kernel.org/rust-for-linux/20260205131522.2942928-1-mlksvender@gmail.com/ [2] https://lore.kernel.org/rust-for-linux/20260205131815.2943152-2-mlksvender@gmail.com/ [3] https://lore.kernel.org/rust-for-linux/CANiq72n-z0v_deUVPWeg1h0c6KQ+r6xfNDf72o29_0yy6KbqGA@mail.gmail.com/ [4] https://lore.kernel.org/rust-for-linux/20260203221224.GA2703490@ax162/ [5] https://lore.kernel.org/rust-for-linux/aYS9bRugxr1rUvA3@levanger/ [6] https://lore.kernel.org/rust-for-linux/CANiq72nnuKJaKrxrut6+noR13PUiSoWWyyp-pGx-fe_2O6ayFA@mail.gmail.com/ HeeSu Kim (2): kbuild: add rustc-lt-version macro rust: Makefile: bound rustdoc workaround to affected versions rust/Makefile | 18 ++++++++++++------ scripts/Makefile.compiler | 4 ++++ 2 files changed, 16 insertions(+), 6 deletions(-) -- 2.52.0