From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 794E237B40E for ; Sun, 19 Apr 2026 14:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607563; cv=none; b=aSxGKlmPo7VcyFAG4n6Dr4IetuUkM4tYpmE+AENA3tnPwXLOA1EsiWac+sTc6jtIDdQyPkO0LYeQ5K9Emu/6EzuLt+8AG5cO0EO3yUIbLmjngbiAejFcxloF9+XN13fj2TNjfFzJihzobBCpYUSNFmz2bm+sWbXrG/gYnwhq9uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607563; c=relaxed/simple; bh=6GSGT8vDPiYQI4YGHLluie648X2Cni+IOPr/N/E3cXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gGbaM9jNaX+up2/kehR7EjSEnsuDKn8SZ00h9Hs5Wzs8p+MTLETAp2QSm6T0xGOpbbUr/kwqujNnRjLGThFRrbAvC80ibocR/nSLDikXGpveUZBUWqq2Cg1qj56cGvlyKzvKbDz1WbvKvHNtISkk0cbZnEWdZg9/2cs0TBdR2uc= 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.180 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-f180.google.com with SMTP id d2e1a72fcca58-82f8893bff3so974141b3a.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=jfzk3+KCejJLVCzPhwzFH7u0XTUW7Wm0XqkyECn5Uxl0jvo+gJO16prDcwX6SPTKJn wC+lsIebdQ5R79PPcjSxR4wxnCwCEbhSIkVm41N9X5Md8D1TO0C1xpPA8yfp+QToUHrF ziDiLnoolDkNSFJpd9Pz2px1v+JxqOpaGw2lg80B/cWQ9YIpV8Yp/IicOndpWcKBnRq7 s+djZKDPV0nwKG1DwcrYRwXSHOHPgKMTxwmw+5XRiRWoaAbPqrP/KNH/q69TEIjsOGbU YyBwzimWT8p6TTcDucZiTWAJ8i9AdIbD9P1rd4kolsatTUyKV6TUXTTfFpaHtSz4RA/2 PG2w== X-Forwarded-Encrypted: i=1; AFNElJ9/nvGOshZXOaZ7uITx0Z5rggqiG8uEZ3O8amwg/VL9lkz7Tv5zubqFjJKXOywJa8hpaABWCWlNJDWaNSU=@vger.kernel.org X-Gm-Message-State: AOJu0YwmAiFHRaGVUWSvTWvZ4C5vDtGS3ALnnyL0QkVeoxdYycEZQMbn mzXhGC9CntGhcWeAR6vGnaE9Pl2WU0DxvabweI9BvY/PE6zBbt+fzwlh X-Gm-Gg: AeBDies7TIFwZ/WsRh7LcYcVIKfPO/w2OO4ih+9dv6HNTILXehsW1WXTgvhDu3sV1h3 k1ZTKEQ1eoGTyhiQt7Qcbjg23GBLuacTuGSSuLwJiL3+7PNI/qC1TkDKZchW+X1m7SJqcrKlrSX yuuKoYogf1rbfFzBodGioU9Nu9HUHyJQEKoNtcEjK2aT9nGSZJVqOiEdB6OviVnPT451ONKWjJ+ Ye3IT702ac7u19UDjuNZgwM+uvXVu7pWw6GWqKNLcf5X4MjcRgMco2iKHr7YSTTanr5cro480ae XnEh5IFllzWLiLPaLhsAp+kaC+tjENefADMUlu70egIY3Zt9xWIHh88CjEPzWJCcnkKaSh03531 nSOPR9CmkUlsvoxcC6t/CczUIqs3VGelBLisXlbPIzn9q2bxg617UZ8LoxjkW62hZLySoTRJukb TAb9NQxrnN/BuUb7IhYOmZOz16Qg== 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-kbuild@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-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (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 89FD335C185 for ; Sun, 19 Apr 2026 14:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607579; cv=none; b=BY8BRBTMJIx7IjWAowNQuLfe4rFI3jNjhzubsUBm6mZRP5bz9Cy4vVozCAK5z32sNLycQG01Mn66R+wlLkqOewW3TGLOphhUecYZwVFQqoKRpfxZcEQHYwIyyUKAJQbNMvZidwWEMLy4gkml3Y1odDHMHyNhrEgpsqEn01eeRAY= 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.41 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-f41.google.com with SMTP id 98e67ed59e1d1-356337f058aso1351238a91.2 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=FiYaOzMdpBtcsrddqYmO1rKIqCvHsv6Z5J++lA5oTEeaQO9091T8LHmEtS/sPboe45 ZAot5I1wDHJBtPEz866+xFP3lLcRg8ZBbGRmByNtH0VKMVTKx0MMo7Ep3RF+VeXAKqWO l9O2P6FnnYcs8cy/TANx3maMPVsHRCphNHzKhSAlraimJp7yTTBWD5NDK3yKDw8XSDo4 S0Lezkd+G9ayPlNl1M3Vpb9J57Jjgp/8Wbxx5IIEnb5Svi2GVPQ1UqHWeRIwfcIi/Xg8 aWf2JcrWBYfi/5l6+J/HDQHMW29VtFZ29Yufi6LEWNQjxON02wSlcdZSx416xrMC1Rle wp/g== X-Forwarded-Encrypted: i=1; AFNElJ9jiUXIroxSslhe53o0nklT51cBMuNcU4Z6wTYbSUO3nkaGiRozqFy5EzloLTxyYteeTcsIkwdwNX+2ImQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8x7rTj4H1WXPk1AIPVSaOQmD7biMjS15E+LobwSAAJHuhpkr8 /xLeULldtJJ0e9kFvlGl/SqZM6NbLNLE0yE6Jl9sQdSnpWcJSf7Q8L6i X-Gm-Gg: AeBDies6nzCDTnWHYzMkoO5fFHXPLI0+l5lHU0WiptkCwblKhIJ145RXWuGx0Dhs09k UCbunSxAzw0dvndjXyfScAkTZ+oDwIQ3hH48vjMbJJpcwDRzHflEPrCnYjmsXE1I8lchzNpmRi/ pjYsUnFCPvzn1F2nE+09I6uODaTVy0ryGq/JCeyBFsCblsZqIcc3r0gqi7O+K4/2BGHg2U4zYAP gLexzEb0k5UlsBNtFMaG3j97tA9+LhYuwPOLtHATy44dYhbEmnznAVFh9L2xATwgXsCzFvUAfOX 3ZFlb7w0PuRVL/0oAddwgHO9D7BHeWaGTcgMkdSxYTrVgNOIsPzoPMvpOHeZ9vHZGpEonXSHlb/ b+mS0q5McjekuPAZr5aUGxyvpfHlTALQ1pK/uocxJlooQn48UpSnl3mmfwSqmFhDt1rZE2Dd3Za zjbP8uCucm0LaGRdcWOngwwtnBClw2HruUkMrw 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-kbuild@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