Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2130214lqt; Mon, 22 Apr 2024 02:13:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUd6ANKtB0m2nE6Ytn/OTJ+cqwISqRjwF7YwWyFDEK9fXi/GTsePtbPIog8Kg+B6r/akXt7HsGdi97UYHnRe4txciQEtxtahaHKARzRbw== X-Google-Smtp-Source: AGHT+IEWj/Ec0S9RAlO8DruE4CRdk7fCS2tFMafDU+6wSON/MtOtQrTbTfTs9MSf84NAqzZ4gdhn X-Received: by 2002:a17:902:efd3:b0:1dd:7da:e0a9 with SMTP id ja19-20020a170902efd300b001dd07dae0a9mr7656408plb.69.1713777237061; Mon, 22 Apr 2024 02:13:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713777237; cv=pass; d=google.com; s=arc-20160816; b=PuBPOeljEGpUTAQPjFoB3D866qlqArC6f0pkanikp1UDcdEmERpnabzLVuIYgZ9IMG XPEVxy+d6VTRP3kckDqUc2af/mwudqJUjUyiqocronUeCJX4Q6tCMkcz94+EOLQt5Iyc kUl6uz0rktlsF24CR8Ix6OnypLkLAPA3iY7byCgAn3/Mp4oMAovRLf+ywvqIZgSNkp67 hZ2JsHQd19Cdhqy/dMC3gBTsbyYbXo14XZEx1+sGTZ+6DnCx/LoyGFXWC63xrIH0uhSD +ElgYp7yF2KKAtjW3AnW6uGmicXuyt4Qznv/rLlzfiNLd5jfJZWbe4oFcBbPGrGU4nDu xREg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=P7uUOHCWtyAhQVfxKHI7NyCrpXgaPCxxkSI3jHrOcjo=; fh=DcEupiVn8GA2jZZT8FvcMHH2NN8S/pCY7+eyWMoIqRM=; b=xSY/ht6vIHpqAdrZ92/3+c0hIfxAijiXQtpmTgsBPJuIlq2m+0gnxEAH5ErdPjs51M Xe/HtoYSljnzc+6PkUz1yernK1wIB7FsmWQ7kgklsC6Z8gUZdaRi/30XKmSt4Zqqotaz gNXLQYRvdKIy3EarYmDp09keyYRNWeeAApDtWApeSDQH69P9ZHSfEuvSPIZyh1psc85x +mNOBb69n2gEH6gcPZv8bt+vWK5G1ePDlWhkCY8Gdt62CgwXdSoepBGCI02psbttRpo+ 4RCrvup25CE3epj+lfIehf7yxN7nu5tpG9mTYXoO5tQ6iI5xoMakdkhrkc0y+kvfRvD0 Amjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hfkMItuY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d17-20020a170902ced100b001e790730cd9si7590452plg.268.2024.04.22.02.13.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:13:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hfkMItuY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B048280F68 for ; Mon, 22 Apr 2024 09:13:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0105E1304AF; Mon, 22 Apr 2024 09:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hfkMItuY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B0F26A357; Mon, 22 Apr 2024 09:13:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777199; cv=none; b=Y01sCbZ2dkCWLuKleejDo3IbE4ENMsM1fj6+JLOVyX0gyNnWeluyjI7L5Wzg5CRDPuphWWEI7xrDUXaED2W1oHUHLHYohfpNKjLpw4HVw6Kxk6D5J75nR3mUAhsxlLuJpvOPK9p6Wp3V10aRyjgYPLui9YWbVKs5YEFeJ6TVxAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713777199; c=relaxed/simple; bh=h+0TdiOoBIhL8Yk6uDMcMRBFY0m2Momhy8WVqNP3frk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eP5k9eb6R735UYu4eulnIgYg+XknniG/zdALyegtGyC2shrrLxOHpBCrTHoo4CMO36g+IH286xpt2CP3jk0YX4p8H1Pwvd/EE0E1EKYeZUCXSyO+Fm83xNpfr+wLhM2H/mjcgaxmF9FJYaqYJitj8LrrV2Kb8TF5aWW68k2LcXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hfkMItuY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA8EBC2BD11; Mon, 22 Apr 2024 09:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713777198; bh=h+0TdiOoBIhL8Yk6uDMcMRBFY0m2Momhy8WVqNP3frk=; h=From:To:Cc:Subject:Date:From; b=hfkMItuYFVqGqwq4VadYltIuthdj7v5gWhLUfhDXfGVa/HIMXN9razQLhYRbiThlz 7ACC5+FyRTVUt7mEhQ3mVeyWpofHQur7EbbNgat5FwOBNntjn620iowPglbRAhWhJR NqBox5hVrh9KfjdZvhojrGa7w6W4TQ0AnELUVi2ehvzL0dz0yXWd58iI6sF+hHOOGQ W5BXOc4ZCqgf85QpKwQO+7nhWBWs81RiCkVRWtfs+Cb0wLqnLfiE2qZgUkc3EvcrI1 81jfC/t3PLZlf2lYWwAl0Z7twglj4Wr/TVo5INKhcyQnZvkyTPMOPbAw0FBb9xViFl 6ODxp68gvQ8gg== From: Miguel Ojeda To: Masahiro Yamada , Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor Cc: Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , David Gow , Brendan Higgins , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, stable@vger.kernel.org Subject: [PATCH] kbuild: rust: remove unneeded `@rustc_cfg` to avoid ICE Date: Mon, 22 Apr 2024 11:12:15 +0200 Message-ID: <20240422091215.526688-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit When KUnit tests are enabled, under very big kernel configurations (e.g. `allyesconfig`), we can trigger a `rustdoc` ICE [1]: RUSTDOC TK rust/kernel/lib.rs error: the compiler unexpectedly panicked. this is a bug. The reason is that this build step has a duplicated `@rustc_cfg` argument, which contains the kernel configuration, and thus a lot of arguments. The factor 2 happens to be enough to reach the ICE. Thus remove the unneeded `@rustc_cfg`. By doing so, we clean up the command and workaround the ICE. The ICE has been fixed in the upcoming Rust 1.79 [2]. Cc: stable@vger.kernel.org Fixes: a66d733da801 ("rust: support running Rust documentation tests as KUnit ones") Link: https://github.com/rust-lang/rust/issues/122722 [1] Link: https://github.com/rust-lang/rust/pull/122840 [2] Signed-off-by: Miguel Ojeda --- rust/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/Makefile b/rust/Makefile index 846e6ab9d5a9..86a125c4243c 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -175,7 +175,6 @@ quiet_cmd_rustdoc_test_kernel = RUSTDOC TK $< mkdir -p $(objtree)/$(obj)/test/doctests/kernel; \ OBJTREE=$(abspath $(objtree)) \ $(RUSTDOC) --test $(rust_flags) \ - @$(objtree)/include/generated/rustc_cfg \ -L$(objtree)/$(obj) --extern alloc --extern kernel \ --extern build_error --extern macros \ --extern bindings --extern uapi \ base-commit: 4cece764965020c22cff7665b18a012006359095 -- 2.44.0