From nobody Sat Feb 7 16:00:10 2026 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 A97F722B8B6 for ; Mon, 2 Feb 2026 15:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770045680; cv=none; b=sMmSgWF+eQvvSHbhEYSuAmsaJZBpZhmQ6HoharHEPPoQ48xBRIylg6cMx4nidYTUvMVy5bnaeK60RXV7jOTC7NkZkCQE1EZj5AOGC4aCK43/+qsC4kv+dZw8SygTVlcwyq4fudJgAsLmuzIUDq8GUvHJ79syY1mbyvSc0sfkQx8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770045680; c=relaxed/simple; bh=uebF3W17W4iCpyRLsu0XOgJ0VFW9DspHARFs09C95Q8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZhazHrcu9Hp9ojORyx5mL8vCtb3g0PZE8g0cL4aJmNdcggES2C6em8bcdrwmsXdOns0S8L7E1qo6qaO05cZzvbAxY/w25v/QOaX4LhTVt890vWSY0BkW8xDgDE5zrSl59G6gEEWUQxKCkH3PBWEqKKljQlPzhJgSdk9GfD5VjIo= 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=mszWFW8A; arc=none smtp.client-ip=209.85.214.177 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="mszWFW8A" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2a9004e4239so7542205ad.0 for ; Mon, 02 Feb 2026 07:21:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770045679; x=1770650479; 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=itEg1xdohDsfB71aoQE8M1B2USZb59oeY+lIt+9t/Zc=; b=mszWFW8A1AlIWBmeWB/6dlH9iq1v1IlH5IxUC/Dvt2PofBAli/Bce8ezj9fmNdNpRS /rkqqsQjIeT79qk4pyfAcpYNYMPVZr0YGIqwZtkBIu1hFpgZpvoRDarCbu1RcPdALDaq rM1ysjyicxvFkq/egqmoGZvm5+kw9UiE29VkhmDuKXQAU7jrfMXk8Y9NNcpBX5+vB1CU GHRpDIqlOUd52ff3zH5s91EMFO00Cr1pi1xcIhByRZRpWFe7JWcdGRWY1qZAyChOv784 jHHbXFuYG142GHuCpbQJjvyYjYj/cLkJ7NyTEPgRL5ZM8CqYkLhXvLzRn7BB+H4ZzPWS inww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770045679; x=1770650479; 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=itEg1xdohDsfB71aoQE8M1B2USZb59oeY+lIt+9t/Zc=; b=XqD3ksaLhlaDAplpAC+pkvKN99rt25CwHa50Hxr3eVGsUphmm94bRjEqvTvaY7LklP LvaJ4Seh+cSzsNnPJmZVbPenHvoEpGlORGwkcit9hwpfFJCgXog23JctjEzs3mg0IMIO /bQLzhdEYvTnuiF/Fd5RNPCJ6Pv3diCcv9UTbFqMADZNKi3hyiC890NQqLwRTUzkldjR IubV396wZg5YAaSNqqxVLlN8ko2eI5aa9892JpNnhEAiy5PoaqxNKND53kubV3NCE0TM 4oyCnbl195oeCGgmnevQdsB1OhF5uaYMsCLmb8FzamoMGbmUvwr7f/i3jeKIQzi9fLeo OOQg== X-Forwarded-Encrypted: i=1; AJvYcCU80zIesVygHRgERv0IoV5t5tnf08BV2EVEHE9WOqAlnjqs18VjGs81VhkzU4Ay+NezzH145Q0+3tUT+8A=@vger.kernel.org X-Gm-Message-State: AOJu0YxC5P6HIf9YK3pox4ucYNRfqxcG0AsJieUkZCnx6m9NE9lnxEdI m5Hepyo5lsNwaLBWWz/SpApxaTrT0bOGKy9xVZYS41nxYdcLqgk+c44+ X-Gm-Gg: AZuq6aJvmsOtiwlLhb18NtHiz9fHuBe4LSKjSb2YCi6Zz7uUvFRVEd3KmKXHBIV6/qb bD0Y4Yo25QYR0DcaSdqSDl1skadmKNh+T6YHOKbep7UXqnNojfFb/2/K73ocEwacYWW7HEgzhgj 1dRduwbfi4a+VjnyePbAkx46pUvLPSIqT5Z0lS5QoDUTbzFLb+gbCBHVAkn6PR5jHKjaOGmeAOi xTgbjLYW/n+fuO20EunxuNlLOJumCbllxKWwgkPKy11ohBWmwm77trJuvliR2buqd4er0uP7h3k r6mRIJN+QmUzVZhKBwpdWX3LmToK/vOdQEvEpi+JnFHKjKTc/Mhl/Ar4oTeS0YN4sT5AUQcW6XW oYigR+C9I+M+g8RgX4FVKHBgJlLvHp4NH1rIQCGkRHYC09tS8jDOhe3Hs0h3pJw3hwZP0GpKPCj GC6LMrgfoROg1fKg== X-Received: by 2002:a17:902:f609:b0:2a8:ec36:1a9d with SMTP id d9443c01a7336-2a8ec361b7bmr105127205ad.12.1770045678978; Mon, 02 Feb 2026 07:21:18 -0800 (PST) Received: from misys ([58.120.241.145]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b6e4ac8sm144199275ad.87.2026.02.02.07.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 07:21:18 -0800 (PST) From: HeeSu Kim To: ojeda@kernel.org Cc: gary@garyguo.net, charmitro@posteo.net, a.hindborg@kernel.org, aliceryhl@google.com, bjorn3_gh@protonmail.com, boqun@google.com, dakr@kernel.org, lossin@kernel.org, tmgross@umich.edu, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, HeeSu Kim Subject: [PATCH v2] rust: Makefile: bound rustdoc workaround to affected versions Date: Tue, 3 Feb 2026 09:21:16 +0900 Message-ID: <20260203002116.2703251-1-mlksvender@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260202222144.2689495-1-mlksvender@gmail.com> References: <20260202222144.2689495-1-mlksvender@gmail.com> 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 (rust-lang/rust#144521) where target modifiers were not properly saved. This bug was fixed in Rust 1.90.0 (rust-lang/rust#144523). Restrict the workaround to only apply for Rust 1.88.x and 1.89.x versions that are affected by the bug, avoiding unnecessary flags on newer compiler versions. Suggested-by: Gary Guo Fixes: abbf9a449441 ("rust: workaround `rustdoc` target modifiers bug") Signed-off-by: HeeSu Kim --- 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 \ =20 # `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)) =20 # 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) --=20 2.52.0