From patchwork Fri Jun 28 00:43:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13715340 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 47BFBDDBD; Fri, 28 Jun 2024 00:44:14 +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=1719535459; cv=fail; b=nwCaqv/8I61gqleZAQKcq0Tx6n2ppfMfN80b+BNyb2x/SKCbsb3OT+S+ycETzxx9qdGeaqZZpPoAxldezzo3uRLqFQLFv2eXYKam1X0hATMPY6I3ot/ftIMcKlev0+/dbDS8ZxTDmm2NuNgPCixv6l5cBxyLtM8OBf8HUhgeQo4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719535459; c=relaxed/simple; bh=v/inXYvnpPInfYnYh+5q01dhkZeWZJZr008Tvq7qVo4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=S1H0x0w3Mp5H9yH/M8RCpaTgUT+uPsDPWWkok3scEGy/MF/JjwIJ/d+HdbjtBIFPDDinv2Eo+E4Li5+Xqp3TwcDEflxUhMT4tZ9jRBIOyNtFb627bJMAfZyPpd5C8SzF+l5vOURBr3+/Z54EniNKB9xqYhuFzW97Zu5YdNNtqtk= 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=eHI0h/WX; 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="eHI0h/WX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=koM4WlIwGlF26VdKJSbDk3xNvLyJKzsblC3iSR/bABymt7wIse4u3m2s6X6Qw/s+xaDgNUHw/hDe/kQ0HdOazR6waVMHjnJa8EYNY844bNcKJY64P3MFabp9aLR4qX/BCDrWFGc05duk4imbH0MGBjTebKdkxF0w+MElvu2fafeK+kKpuqWsVSGO2h1bxafWtDqc/6/16uavtDYMvhcqn6ikKbBO8bstJBsuozGJFU4eTHQngNQMxu9KXO3RZCzG7l6ZAZwd4KMl92fZgcPXcTERywlfHcrQ+gDtYvN11pUkh5DAn5zC4lKYNCNKoCS4pE/hoVi/RGuMvVxszfw2Kg== 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=b8N7hoFYXWoj4Xp9dw1TreVFCrqgSWmdnVzWTgl3ulM=; b=Oxs6gBZeNG+nY1u+34AYxLI/Q9ASgFfyRLO7SBzuuzhigp/9L+m7UHpbgTUM+F6gI6noF9xcLHot8/Iho1nvQgTJw2/p+ulTEGOqQAMl7HHl9xSeGdJL9oIbkiDVxLH2k2UA+huOakyTulvp3Zkah2QIrwGNH2OptnFjFSJIhNVHoVMLdd68H52+nA1s0mp8a/8d1z34XXEDgpcSP8TtJXFcNMRsyDYbYrmth6c04iupY03SPJfObLuCO1+0F8cNs9YzCfN0APoXXMDeOBDOMMQkkCfg8caWpmxQirm4oLLZzYJsEAGnhtogJd/hGxjJtMBWO1zVWPjHxgy+eODsfQ== 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=b8N7hoFYXWoj4Xp9dw1TreVFCrqgSWmdnVzWTgl3ulM=; b=eHI0h/WXUmxH9/nzJPPQhVmKDMMaAps8lIsevudC1AtLcIybp7uxGC12h8PmTpXowDShJFPwi2rw4/CQvRsL1IdcgittTAeZqBNOVPy0o3f1gmkCFiT2VLaAYjjYwNqZe3cZqUdgBpgH6qACiqkKAF+vC1O3cbHTOJH01oNdEg4I77+D66K/3zR0vx3d54PAzMlE1ApIXgKr8100nrwOmoE7nxcMipyidqTIBtvSfdV2EKkJRLVV+ahoSpVlv2iCnkCbLO3yMD/FN/owTv8xGboi2KNKIOsnhvPnSoU2uBYG7X/yc4WEyRLG7eg/er6bUl21eyw1crwpy+jgKyjNLg== 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:03 +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:03 +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 1/2] Makefile: rust-analyzer target: better error handling Date: Thu, 27 Jun 2024 17:43:55 -0700 Message-ID: <20240628004356.1384486-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628004356.1384486-1-jhubbard@nvidia.com> References: <20240628004356.1384486-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: SJ0PR13CA0070.namprd13.prod.outlook.com (2603:10b6:a03:2c4::15) 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: 5ca7803b-c687-4222-d04e-08dc970b684e 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: +3xxJ1nvGcl6ozf9jOC9Hri17gQLeBMWcC2XfHs1V5+TkqnYT/jUSRQw0KtwypPJ+4Mwk4KDlnP9sK+X7VEtDVbV8IVoF2vjn2m8NpoERwEufRZkvgDyyQ+6qnMrvh0nwqPgAHehuMNCMc1+ywL2DE0pvyI44vrslk2VqOfU5VJfzFLz+N/TGbD09zn8C8UnUR9Te0sqHuHNsy4hc4nvhHXksy8b1hVSvgUl2Gf8l4I1cWxmIOfK6gnblwlFRB7gcrOGpo8zCSTyVWS+Wc8q+m7wzEJYtfryAH5b4dI/ZvwrUfbTi9p2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.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;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: d0Zs/e3ef1SZmBvH/nS8iz7YetrwNyGG6NY42iOoPy0SVbUJze8vucUVQaPWI/P5x5sIr3cd7M6oTanbYxVXDohFWt5TFIu+08KHtnCA14QOezBk2bIctgzmI+Ni53W8EDwt5I+n5cZCPitTNZlE4uR5tpRcBNk8cp9jc5wtmxvuUH1FD3Ld84QKIselc5guDGfVAZhuwXDVyQJyNJrGM92W4vSLSGYe+8XyaRhd9JZRxDd5BjmUD1ARasp+C/SMcj0OEhLCckXojOJwp15tvPfoEWiq695nPuW61YiAGNjcqukxxQXFhaSn9jWxk7sgR0qYQTmv6dQ675/4c3DA7vKY+dpYIO+I6dUOODfu0brCpHFAtn0+AI0wL4QBgYPaw7Cp0NLPYF33JxRP6wjNuO11lObfrGFAoiWhyahuQ/JEB0QTT68Q2dyBJPG2CVSUSIDz+gvCvieq8lH+AgWbEVoZjhcq4j5vnVrdHWkFD/64xWrN135ue7aWuj+m3HMVUYl8KwcBcVeTAYu/PxN8vHve7uqwzU3F3K6WXTG9yUc6NUREnsG5YOkdswbx42Pndv3yhaGPZZD+VuB8eu3rAXjraBSd4O2pEJqa8gPGqy6to3ZWt5g7X/eVkU1yNyTX5FHUC5p6iB7xI3DVIbPq2hWzf8fK5ogFLBHYivszyGTovVCZTdw1mCYIX33E92n7r2TK3OsTh60d1EbW6r425NcfJ2IqeDdiIxVxDdux+Y+YAgoF2F7qGpD8k1zdTuayzcacKPu8dVKBfLOs7dgAqE+n0tgXxA8Cy3XCbrd9Ht6J5D7vHOqQ0RUSstSHSCzIbUxUMHOnbU08qdFTW7nekWjgYgquCk6LdF2oRjafXmEEkcKAnHUWCExTZVhp7829/8JwJta0hd9XYvLfKGhD2pyQ2sNSqug7cA0TqqToZrkpfURKYlvFAXbWp88ICJC5tt8HsLdohHRjsIpDf/8Wi5GLtvAbxfWsojktZ9hurZSpSY3KdbjXNMSKASZ3voQcrYw8cWBD8yQJLpNYnJ74oPxoiUndWb01dkkDR1VHmTpeNKzIzaae3qnv3Tff4KXfAEZStbZA/EqCbVqd4O/lS9l5Wi1wEsib+yhG3gXjesgFAjGz192NL80lJa0wZddmX1XYg3aDUCMlJl48NoUyBaWf76jpz1hFGg1XLpNmtMZgN8RJEUNifM56baGwDhz5dCtBJI6wJwKDX6WR4YnYVkMYIIok+f/lmaYiKf+r3T7sO6XdMDHrtImMYtgZxIrKqvO5QByehv7n32NqGM+3C3PcKe9Jt5ySMQLSFoNy7JtcIT8GtaaV8ASYl7E05xWgU0Q9SSqHckirUgoU9RC2AHaIpIrilGHaKq8kWpNECXX5/Ku/xO0epUkM8qGmTYo47ZUgVTTfIJGAm/AaXyMDEHeEnt5bwCVGbT6Vtvmm0xPjUZzIxRHI0kidDGX29m/J5v0kzPnpAJM4wDqhbP3j/8OTgF7hE07fXe2TXSlvY8LMLQv4qUOGeZRWRxlylO9OLsLtW1iTG0cBHl6lMSHQjIvsp2GT6gAgnac9or49rpL5/Ugrgx/nKOE7jF2kaGVo X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ca7803b-c687-4222-d04e-08dc970b684e 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:03.0881 (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: 7tgazDyTPZ/XrKRtzKpUVy4I1CVi79PcovBrmHYSaeaeu+09VBM++pMjQKkwQSoQTwmRnc0iTmRCJJtDJHd59w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8126 1) Provide a better error message for the "Rust not available" case. Without this patch, one gets various misleading messages, such as: "No rule to make target 'rust-analyzer'" Instead, run scripts/rust_is_available.sh directly, as a prerequisite, and let that script report the cause of any problems, as well as providing a link to the documentation. Thanks to Miguel Ojeda for the idea of just letting rust_is_available.sh report its results directly. The new output in the failure case looks like this: $ make rust-analyzer *** *** Rust compiler 'rustc' could not be found. *** *** *** Please see Documentation/rust/quick-start.rst for details *** on how to set up the Rust support. *** make[1]: *** [/kernel_work/linux-github/Makefile:1975: rust-analyzer] Error 1 make: *** [Makefile:240: __sub-make] Error 2 Acked-by: Miguel Ojeda Reviewed-by: Finn Behrens Reviewed-by: Alice Ryhl Tested-by: Alice Ryhl Signed-off-by: John Hubbard --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4d36f943b3b1..204e9be0e010 100644 --- a/Makefile +++ b/Makefile @@ -1970,6 +1970,7 @@ tags TAGS cscope gtags: FORCE # IDE support targets PHONY += rust-analyzer rust-analyzer: + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh $(Q)$(MAKE) $(build)=rust $@ # Script to generate missing namespace dependencies From patchwork Fri Jun 28 00:43:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13715338 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 0CE5B4C7B; Fri, 28 Jun 2024 00:44:07 +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=1719535450; cv=fail; b=UntEPSUGgHV/Zjjrju1sVrvkL052XaPboOqubhNSx60g5KkZpwelCBWH1jBVoLpL9FAvYhisfD17RDU9MWn2VIwjzDydaY/c6HlQw9sRFMgx7qlR4TZljpirFRbeiNPJ/XIrf3SYXbNEmQ09tInIvBptXyUrRSaIktYagoYuHfo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719535450; c=relaxed/simple; bh=OHhV0dIi88bcFt876sR8yOY55xQo8bHYUw2dxzcFjHg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=jXDtKJR50a85G0fETEMcou9bGSmMM3aW6rjRL0o3OHAiqUvaTx2O0TbP+e1kfqyVuoxga+vVH62AhjtC6YU6BYbZklLKZD/G0ITifpGpB+0wpxUiizH39X7E6URNkUg7XncMSsl/eutPvl0wjPIBbd446aq/pfYz6Ekty9cZUj8= 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=U0ZALN/t; 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="U0ZALN/t" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CIGHhiCx8dUEr0LtDQ40daYUiyqfwO05l+qfaP+9EfRghj3VQV0Oz9FDzimSz5C+X3MQayNzH4lhYD2mVzNQ40Vr2KV3atgzIlufOoVQkcNHjb8DfO4Qzz60uRerhW7a9XBtnkfvRwEUvp38dlZWt0u5wH/o9JV0qRRXb5c2hzLQo5CgZ0jams7CukvT2t8G7/IogYh0GFJARPodsAjzia00mAmJtNOYuQ9GWMgLW4MPDtOv4VEtQXPndiwKL5Y+Vs4ntWpFA4bRaQPQtEPMQ+w2SzUezQf5jqxscYkpRLuWdBd5BPiNT4ACwZmkexApc5NDV9XrjwD0PGyPDY9sKA== 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=ItE36E+f4vxPUaJTM37LL6S5MbJLxW9TIEdEoIa+Bs4=; b=XBmaskXXV5IdRKBhw8ZBFyGyQvretWnS8jL4KiKqkO8bhjX2hb0tPraChDfvgiMGCWewQwD6YQ7j2d1aDYXNYG33E2Wy9xE52ZQK6L+3RWq4L5VMaSybMSCeubuaXEGaXmwxYyY9JglVZ+ZuMi5yrQg6TcXkpBJ9vtFJCUifrmkPquDpGWA4LZ8jw91JI3v9xX1tOIZecF/ety/6sUW4ZMa8vnxbjB7Ih+BmhT2MzLn+GDwtt6bqVKG9fatuNHtnu2reVER6Pxm12Tuxmx8Ci4UA5WoI4ATtXBJdD5KOKeKZBLXcOiXIep+qPWY7ei/gmiMeHJLzwzpETq5D73jpBA== 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=ItE36E+f4vxPUaJTM37LL6S5MbJLxW9TIEdEoIa+Bs4=; b=U0ZALN/tNAF2QZAckhS6gQ89pa2wZE7Rob+hFCYwdnvYZ043+dZHXpsoBhX4tTWkqVYjaPryJeLYYBdZxkocqDXV4uLp2jogZIfKrTYLe8be1dfg68qZSUwjXqpNw5+yK8ywHNrBPFpy4YxkV8gM4DSmaSbgwEUMvl3vrCJGLewqEu2INlrCYJr2XJFf5M5exdwGT4GJu0kP8sVfQ/QkMIoyZlpTOYW9rzx3G3nQDo2TT8/h7z1ATOFEi8DgNzKJ1koqOtPqS257xEK7nBiPxrxgvjqBz12aRfrkzH960BDWWheSndBxNUpd1bSIv5v536UAxIPfEzYxJO62viA2Eg== 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:04 +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:04 +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 2/2] Makefile: improve comment documentation for the rust-analyzer target Date: Thu, 27 Jun 2024 17:43:56 -0700 Message-ID: <20240628004356.1384486-3-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240628004356.1384486-1-jhubbard@nvidia.com> References: <20240628004356.1384486-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: BY5PR03CA0001.namprd03.prod.outlook.com (2603:10b6:a03:1e0::11) 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: c10560c6-5ea5-4939-c233-08dc970b68d7 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: OyY4S9N89NyTaunjTcJEQJ9cgDBjaUpeczMCK+SxBvYxxb8wGAE/oCd1GJsRCFz96yF4cafceLmUGJkR5cp2biCj+sDWm9V0Ot97cMnKYlCIIXafVKLpLWwyoPbzFG6k0mdgl1B7AuG7gjW7yP5b3sUx78yziby4GOojntLOAXsbZ2sHJFSs+2i3/tRIZTu54T/fG39wFlt8KJiXNZt2JRXx6hVDluB0TqfKxaDu/TsEsH7DciBKiGk991Y/vpAadXi1CDIkcOJernk220MiZ5WFtEjQHUAugwzs7wJsR6m+0xhWCuoEgaiPGfXy1ft+75pP8jCPks5/5wP7kxltVVTAUtM48fO8plfJ2hrbPhL0y2fY6en72Kb9GuvKDqQTlciS2zfyNG1/nPINkDlmZPuQya1ZmdQTft+Epg2f/ahPxx0b3SskG3yy6jh5JAbYwg/H8QRsSaSkgr7HzSSMs0YhnJv4EcCTGEHSErQeF6Fzh5IA6+eFhHFMHC5mEH2b2L2f3KxS2232vphiAlQzho7IjPBBLEFJidE0XwJkBhqWRjhsb7BiRRUVHQRpBY5BmlzFid0ERPRtWsV+/YsAdEDviPo7gkwMst7TZyOZvZ1lqkmeVFVkN8NAh59hTjh9xVQ+h+5lCfE1BKczy8z1fJ8wyyZkZJcWiuD0/zwByMoAUXb3HNievh+K7nvkxRFSpqpzMLqYmZBF7O0JpP8KLCQ0shOl50mCmStDDVhWv2LqUz3U+lB3hmRDFnShF1yeUWVhIj0uPOYnw7gjrP4UlDgo4tRAWXZddbFJevFrBeYr6c1q6QatSEBsJfNsGjSyfWtb73WVyahXnmJctseX3JjeJ8OIOE+Lq5sMVskCW4Zldj2eSLTXbuWLU+ntYdEZQzWLHnWWWZNzrl+yBHBm52pAdSTobTp55a/+Od3DB6xf/2QpvpI/lQgGmaZXRyPwci86W7FZ6LP3iTQqUnQ/4U8cCVZY/kW+1AptjQ22xMEt4rvol9uiXX79PN7OtrUdABp7I4FlV3G9e8LXatSvAfxP80Cr5gryXJyMNN4Nl4WEdnpZOuGJIIheXnRtTgQpXbOdJCt5BR+DVjdap0kJa7g4s5jERKE70tBcXZfibfzrXvfcxgYgZ1wkakHC91yJOe53TfESfyfvAymQRV0CWYo67cNuadYs3ja4RfUr1bFPLSMum5kS0LPDO+W8SITodJn1EkxtjiTfliEvlajZazhT5kXDjPTK7ZjXZ52mj9Phz/6K61WKSffmzaj4wMssHK1WU5lesQlDjGIH8UpAN4F0cRJLZGH6dt5BIpzw8IMFGQ8+/A/9sX6gsvDwRCLshibFGfFaQxsPwN3RJ9ExdQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;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: 3RUrVC5op3f6jwLrBTGc2Q3QFnhjqwaHeZ2Wtc3jdAK2TspO3ENyAXF18akQyS2ahZOQId/o14RS3gfmXMzn9dFaKdqx4meCRRZ5R2biA+T3AiSwUIHM65HcAYD6yz/NsZfzHGy5IqdPfNkyELCXPh7doTop2O+POphgXj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q31UsgqkiRh6bbR8A9mJfrniIOsQeKglFd6xVtxbPm2IGD+bzt1DAs7LwfVKnMo1IkCk7ZzkKNnEsPimydXvnu1ZONnU3qj+Wk/NFRQ6rj5xyKil1c+SnX8Nu87GCq3cZOxdVrCVzf0M8OosOP1qURRU7ra7mX3jrVd89plu1X2S/8X6mZ1TneTlDziHjTTKREJqGsxYXAG63jxmxEZe33aXpwTgrYtfVlM9dfZDc3S0up3ntsLGemQEOcM7EocJp4Y5w91vkRaWTvEBTJSHiJMhNGMuBcYloWbv2YzIr9QaWywk2H5PJc7Qg4vy6xrEL++khlfqXY7LhYVs5UkYjENbvkXlauuBZ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c10560c6-5ea5-4939-c233-08dc970b68d7 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:03.9771 (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: +wWKJaa34T5U0ErY848LATKnwe44GsXjiGhgAWB+WpKBGyxZma/VFIrAm3bCC71kr/RxuOsXBhlljCIWaoJ+Cw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8126 Replace the cryptic phrase ("IDE support targets") that initially appears to be about how to support old hard drives, with a few sentences that explain what "make rust-analyzer" provides. Cc: Alice Ryhl Cc: Finn Behrens Acked-by: Miguel Ojeda Signed-off-by: John Hubbard Reviewed-by: Alice Ryhl Reviewed-by: Finn Behrens --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 204e9be0e010..7db597bdb09d 100644 --- a/Makefile +++ b/Makefile @@ -1967,7 +1967,9 @@ quiet_cmd_tags = GEN $@ tags TAGS cscope gtags: FORCE $(call cmd,tags) -# IDE support targets +# Generate rust-project.json (a file that describes the structure of non-Cargo +# Rust projects) for rust-analyzer (an implementation of the Language Server +# Protocol). PHONY += rust-analyzer rust-analyzer: $(Q)$(CONFIG_SHELL) $(srctree)/scripts/rust_is_available.sh