From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 933D437BE98 for ; Sun, 19 Apr 2026 14:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607561; cv=none; b=YA3fdqhloNtybRhq72FHNFsMiF5UxU7lF4oxj4LvO3EvJIXWOHKeOolAzy5j73BWTlseZNZpj8nsX/bTFtIz2GjOBOSNenvzvN5ui0IHFlRPpF4sfYme0Y4m4/h02FKav5re5ker6VPu9UldwW82cPVBVft4BigtC64Cj2aY1B4= 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.179 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-f179.google.com with SMTP id d2e1a72fcca58-82f8893bff3so974139b3a.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=imz3WhBL8pYA+ytbhLI+PiKgYHji9YT/K4jbxcrq0Whj9NaOSn73NlYoHDCDPqQG4F pSOfquyTyMyi75TKZcqU3LXfHq2sbAY+OcRxl/zv2VIzBW7fidUeZajTJW3ZueTjYP/i BgVQ4TM2TmTGCDOFqU6+J1kNce7OOR8bfHq0Zr3RhqpBIQGGSj2M2W+NutY6RZUvWxlD ajPFmqdaVauer5rnCeRBI285Ez69P+gf44divYd7KdD1DVArRCK3KHNf/1ZaZbGw/8H6 aruApD/DJiPyye6NIOR5sLRqZwxlUES+CGBWntw1Zl20M5t3hC8s7Ybt/Sm2ZPJ+5ypa 3PDQ== X-Forwarded-Encrypted: i=1; AFNElJ9FbZ7WlPT8Mw7WnwwfT1EF8d5GAEGYJr7rcLF66mabL0Fli01bBu8Zi7GRsDNpXO9Jaw6gwlM=@vger.kernel.org X-Gm-Message-State: AOJu0YyrUJBIEj7XHOgboKHxRzedvtJbivt5rCDkEshUdWMBpXqGj8fy o3vzeRXe5elxYukS0ePW/zvBCwwGwIk4XUQvCs4qhwzHnIb6ZPXIY5Ph X-Gm-Gg: AeBDiesUn30TizC44hMTXL3Zx0d3WlThbftGs0kFmgTd8OtGZlQ8iksoxoLqLPzFycJ NTM2zQJ3UWDcqmZ8ltESSxBKW9+Udxkl9KWGY2U8WOx0DdXoIBuXqcBGtU1aspf5+7g8acVumR3 +hpiLQYFoQcl+SQko5xxOkEcf/8e0/cJCouKVPdOJ+81LckPeDklnuSAEhrExGrbSITWJa0BUYS /RDpNhRNgRJeS//cT8X6YujBDdDKvWCUx9E3UcbIjsko+eI5Gz5F+NgqpQsXaQYGV06tcOriwmg uF/52eBrFx7xJsX8HYyL3QBNlj6MXUZmOD+TGsqKT9taGsr4FpGGWTzRKrOA2jtUGSO33hNLyCR KFFNMQ4wxxOZpizcP/At9qJDgAi6DhwytE1+OlVVcZ6SBxD5sehZV35nF9uJMn5DHc5+Eq6SBGY AnJA7woqUATBzSPe6niVjE4QbLkQ== 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: stable@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-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 7BF8822173D for ; Sun, 19 Apr 2026 14:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776607579; cv=none; b=WJLsbCwpftLJN/9B6mPgYBpA/zr9SheRSA3dzrjriCJPukUUKYMs5goi5y42hH9HQVr9rVn6Y7QVf4BChOE+ASoZQ/xgAXderVlD8+Z0J3Q6/9wUrZKuIXB8+lUZTngR8JPnMlH6GgPuKAAY4CmyVQLoUjPYut/u3NfXN292igo= 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.50 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-f50.google.com with SMTP id 98e67ed59e1d1-35fc0d7c310so1461799a91.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=LVbhEM/q87DdV9Rh3MvzN/4YGzy4t4cn+9Qu+t0MCdPdsvk/EE17+vIL8F5tpp0rnj fkVvyFDWn5X3JTnwzYAeruekxgWwS512O52+OdvcfLj+7vlrFoKdeS7YgPZwxKvSq+OQ YV/iBHGtqosuHD1wPD7G4TU14EA/HIS+hPi0Qc/yIt9GScidkHzGOFuW/kKxduKB+Veq mUn8e+/ydG0i5/7etahsaWJYkwJKcpQYHFkyeVYd2q+Fdvb8lCypxkMVZBUxiMxJ5IIc 1TY/3n3uTn2dzgcL5o4olEsmrNb9NKcn5DQNiHm3k5rlJisvHuECBPrYwZI3Ul+ARw2A Z7HA== X-Forwarded-Encrypted: i=1; AFNElJ+NaRROLPEdv+jXIAbx1JwKo70jBL3DUfk64IwklGBpXX8CBhmGK/Z8p2LLGB0/JTK/4MCIYzI=@vger.kernel.org X-Gm-Message-State: AOJu0YxreeRVw3ihvluBEuL/KwYNu5g1dBXKfUm62AwJEq28jC19M8Ud HXtOat6kQzOoTVQup9eznSXqelPWB0XbNvljF82KH88BhxQWDq1bjxx0 X-Gm-Gg: AeBDieuwuGQq323WEUfP029R8LOoAniMJpWF8gZaLLL+qdPlhzgStX2OibsHzp7hr+R rD0qjQiWC6nx+y7H08w9RBP7KRRRTydfStwt9m7FJ8tD8RlXRt5YS6MFh7+s6oOO3ZMJZdNoMXB 030CQMlUvW50k3giFDNlafJgf7ebdUG23BiNw6Yxr1rzRURfPdelOllDZNHequfQn3HYEGgrBQz /iwRbMUaxtOLF+/BdulnToWcDt1H7jAR2VmJ7PMObvQZRI7EQAEPsEpCPNf0yfNdn9rN25dSBfF wF3RnfQNKpUucXis5Tzf9qtuNNeNQE13SL1JWhahUf5VMLrxlp43EFfXX6MCnsbWsBmeaGyJU4f EJUmBmSXvRgyxiYBPTR4dXfdLolCwxNc2h/s6n9tWG4wi1Px1pt3+yL39VuHxAmCmXLgqhNixP9 qXydZI9sieiJMAdxG5CM6nNrWyp/bvR5uiswCO 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: stable@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