From patchwork Fri Jun 28 00:43:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13715339 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2063.outbound.protection.outlook.com [40.107.237.63]) (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 80DF8B645; Fri, 28 Jun 2024 00:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719535454; cv=fail; b=e84ab5xR2PBBkgTsX2PG6257KHr0PcxuTlFqRjb0Zb1YyhRbIHiAfH6T9CRSrT8VsDEaNmBJISBk0fLliSGLLyhvEsGCukWJTZpaghYtnF3d6Gl4rcWtClKI0sdMbzvsJf9xCksoWPrgjzaF80wFIMz0FjPpK9Pcx0dScxFSlQ8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719535454; c=relaxed/simple; bh=er0xhJAwUgCWWoE6xnWVnXAXw66PZBorMvyBVdUvoJE=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ZxEvK/EHJ02JrNvmy9h0l6PwOEvJLhGy57ZUao9HSJl35qUVLhOtj+9CLfl7ghaU/yu71kY3998ucboYzbSESgZg/2RdPtPv6uGZfgr14JDdMtQD2Nia+EVmvWaAIFtxrFQk2xqb61VI1oDG1xK5AVKlFMX3tm7fm4EFuOEu2vA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=ZdnpbwKT; arc=fail smtp.client-ip=40.107.237.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="ZdnpbwKT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eiWO9Su5ZTfVgUOjBccuErc/Y3Pjx5GAN0fTL30hJSANNY6plZzantYqWF9V+VThGXn7IVdf2Z/H6/cd+2L+CBgA+SPRFiyJU2j6F5tT0w5nEMpcxxb4x0SgRfiZyilUfLXZ0Muh9c5X5JVInjuoU6u08t7iblLA8/YTFA1X1x/UtwUp+iIJTwUJhgAvV2MKlEOFPM0W5DaLH+Y1v+Oeczg9jMWSFfKIVLdo6vFT6JP1O+tLIQdoCFJ1aFOqXg2jeFmm6hIFBReNZ8sMID/M1BSASnQ78xXqrHggtdkZRC9kDMz2NoNvGY1B4Z4Wh5AQPrqKmAvGUDSQAHAxnY1gkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0LZRLaIkMIif/FzPtsAE11TkuK0UT3e/5HiVi+vKfhk=; b=mFat45rxag9JHG7a9iVi01sawoNosgh8zrpiJS+hHcHPNL0NFizPmzeaVZH1cu4KpMgIdibJe9kF238UEXnkjV9G53xT16M4ymPSRF7nw+G4n44u1lO/NZI+w4qwHVV4j5UiA3o48W0d3Jkb/h/Lz0D0N9HL4O8jxE/YPdzIvGY3YG3RJxXDkFCwkjDvl2W71d2rF1VfwU4hsYwwNhRV6953LyT4xFXMQHXU+3OA5yHtKJvvBv2Wut1dB3BhBotW1kOPVyHHunpv+sLFrepz/tF4lq8tOzRd5sB37T6S9Svxumx4NSSo14XjnAgBbU31Rg90j4ovovW29UCKS2ax1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0LZRLaIkMIif/FzPtsAE11TkuK0UT3e/5HiVi+vKfhk=; b=ZdnpbwKTfe57uVH1+g6RkLj3x7uQ85ScfyKo9msG6EUKg7bATDku7xc9Ym/m3lls+fIyBmB8bspdx0u+o+J7M6Sojq2rq6aLtwu0Hc2ccfPKlPowlaUT1hYE3PFRWgfH5V6zP49XeVM+6ozt9Fn/Sx8tiUaFhsv4O7auKZSHuwawTWohXuz9jrJ5hfIKieAOsXDsmWoi3bQ1qoxWb58DHN+V+f/CZH0AlxxMrUz+hZ/BncriWfWe2tE33S2lid0V364h50BC9t2yZ0Mc+FLjW7w6edekNm70rj2m755ZkPWIY5AtMw/Kr+rlhcf0BoP4oEm/mYvehehS/OXicTYm8g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by PH0PR12MB8126.namprd12.prod.outlook.com (2603:10b6:510:299::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.26; Fri, 28 Jun 2024 00:44:02 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7719.022; Fri, 28 Jun 2024 00:44:02 +0000 From: John Hubbard To: Miguel Ojeda Cc: Greg KH , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Finn Behrens , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, LKML , John Hubbard Subject: [PATCH v3 0/2] Makefile: rust-analyzer better error handling, documentation Date: Thu, 27 Jun 2024 17:43:54 -0700 Message-ID: <20240628004356.1384486-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR13CA0125.namprd13.prod.outlook.com (2603:10b6:a03:2c6::10) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|PH0PR12MB8126:EE_ X-MS-Office365-Filtering-Correlation-Id: c9c4a59b-704d-4394-593e-08dc970b67a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: zXErKiWJun8Vz6lKZ5nL1w4lSh1gGAvzxR3hKr14JDFmTkgNLD0lC3n1SQ244OAgLPaKNgnXmd9WDViWW9d9ERXjYh3efJg8+p9rhNmxEzviTh02dEPMTWpimfRih5clGcqqU+oA1tX707QyMWiv+w6S8E9ZJf4l891TPh+A165R2aFOkFQFQCViZ5wtiElJRW+vSUzGVKYfCfx+n/0HtjMe2gshPoJvSmSwpuCXoEReYzSOCsderYSMDLAwW48pF38vaAenQF4a1oLqsR4/tr7klZi3FfE0WTY8VAAh42IJL/+07C55LUNRR9KI/lNFmhgE8vcL6eKj/A0Nv5PrP7jwnLlOpXFpQegP2O6iVArKyfL7Np6jCfGFppoTl1zhgFSF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;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ebBYxR+GwjjvAYthIMAGixAbxtCn+CD6wrJDiHW6XvYDWs2LDGY+6ES6Cms9wzVmLrity5fQxdAl9PYhyhszoTfC10MjqH62dF4S9o8JMLn8/YhAS4mcJ7s7LBy2ZPby5CiipWanYoC5sERZs//QuIVivSShQAJGK68vPc8Y98FQhhO/Wjr3Wdu7RyvpVu46G8szPVtHcgW6ZszVlb74E/OGiBi5s5U8KupwyOo9YmOWA38mN6i8UT/PJPcawZK2yjIWGwDmY/D4mtksLivnvStfVjCPd+MpndTl7XpjJjwcCwmVVFzkp7gs+vDybQzuXK9m0g8mI10RbWciJU/T7xouOMDV1cvnBj1x8CXn2704ddTDBHy5hi0GsfLWbm/p/Xf6EtADO0hO8vF6r2m1pkU3Th7JsSUl5HlW+7Yey3Jha+MM/Tawyy7I7SfrCrwhuSNAjfI/Dl4p/JEXocdN6G4c1J3ksB1fT7quxx5HDvWk4vBTDmA+BnCvbG5n1SfAejMlzZyS+koRhNzYzWrTSyibDFSxHqhqbBMp7v2KGzSwDcGNAuyYxqM/+Yfk0xz+8668uhPWwOee+7+R0JAddphMkF2nl1yjtqss3cdRCLkBpw7ChFhnTKHnUClxDTDpNmlRSDgR0ejuERnxedVedKqPx48sAck9VLNUqm0RXseRybPkVPV30iQvOryZLDs4lNEyRgXBwAEP1W8Ukl/rZmh6HGG4KnNT5T9atwwmXSL79AwZnIIN8qJqmIUKW+jbVn/zj4QB01GR7pbw5touYvc5wbUv6Z1TB92WTZRYy8U+iTYhyhJ7Z8yPzn5XDAxFR+qldVH0i287AeSLD2W0psfspRiDiOigNiVDKZkAg5JRqZFM75rjXV7sxf6oG59X/KMR7aj+2POo+1kPGDyDzZGDR5Yc/qdH7nxmYbS5ydta3QRY2edPPnHU3MwZSDXpL/2iXA+cyRpiNdBfEJbznx4Mf3eTe3ePzY9cY2eUH3dQPxUbdUNZEeiIxp6UswpN/vzcwT3sl5V3Bldu7fwu/mvx4mXd03xVPRY7Wg9P5symRqpJ51pQztEOCMKoQS5AXgXjDf0lTUS4RzmdpZNBa74wL1qvTPH50UpWxKqpOkss8cJafC6UaxtPKRr0yNy7bT8V5C0wmnMhRZA0/XYSR7j6cm1LVuACqTmdBCwqFbi4hswtgEl801Tmb+EoTs5Go9O8cx3elc74aFEe7Z1jErojCymNFc6uZgmt7Bujs7P7ExBbp6Ft51AaE/DSia9H+CkDvJSN5l1GuDugk1aX9rU9/yJWRxQ7YpGwp8KWkeiTmelIfs/JCnDXryUTr+zA4pymh5FRcniO1vyXkTmUSocHDOti7RBc+6fIlBpNYZmCSHLdwvOkry//Ta6RWhoikPQQxg9qkoCuDNSqIKRgue27eQ14ic0XYYkNe8Tf5QHBY1QimA9+plqVin/dL+3A5rjanJjCUo1QmgyYiHHA/lTy32UdW639448zKiAWxW4yGE71KYicBIekOuGTlTqkPbtvtu6ylJM/Bgqsq6kYL8SQ22IdDEbEexMnVrDWanfjMmsmhjlRnAv/04lDz035 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9c4a59b-704d-4394-593e-08dc970b67a4 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2024 00:44:01.9775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2Fuxc4kMqwIIG/A4mgj8mbo3uWTr3DxPY/uJHhTnNmx18yJhyr77n1I7yVF0qE4NB/AbbBxr7NlI81R/wQOfGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8126 Changes since v2: 1) Used wording suggested by Miguel Ojeda (thanks!) for the documentation patch. 2) Added review, testing, ack tags. Finn Behrens, thanks for your reviews, and please note that out of an excess of caution, I've only applied your reviewed-by tag to patch 2/2. For patch 1/2, the wording changed a lot after you reviewed it, so I couldn't quite convince myself that the review was still fair to claim. Changes since v1: 1) Thanks to Alice Ryhl for testing and reviewing v1. I had to drop both of those tags for this v2, because even though it is small, it's different enough to invalidate both, unfortunately. 2) Adopted Miguel Ojeda's suggestion of letting rust_is_available.sh report its results directly, thus improving the output, while also simplifying the patch. 3) As requested by Miguel, split out some new comment documentation for the rust-analyzer target into its own patch. John Hubbard (2): Makefile: rust-analyzer target: better error handling Makefile: improve comment documentation for the rust-analyzer target Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: 6d6444ba82053c716fb5ac83346202659023044e