From mboxrd@z Thu Jan 1 00:00:00 1970 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 3D2A519E96D; Wed, 4 Feb 2026 15:34:53 +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=1770219293; cv=none; b=NHs4k0qq39TV949CWKgyYBL96FXLulf1/B0YciigjLr01dnS44fHr5TGk3HvO/YxJwvDvJLoh/H/UcCpo8NYdbU3F09cAters26rB6Ps6qtz7euz1FMNjaDNURHJ+f8XcJ/GYrvng6t3xqYpyPW6MU8CJhnEtVRyzzmrYhrIdls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770219293; c=relaxed/simple; bh=5KpP/PhRPy8Qy/5UB7otTC/JHlziHkIwWvkN0uNBWP0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o/6NAEZfpI46ObCItopwbIUs0dY8xmPExM5dqIIIO5lbv8HXsY/oKh9RtKDBy6qU+TDoLOaK062AbmUdXaJIcvj+Lufg8+tMwA2mk5Kdk1skZpIUFGxk8+804KYHPAzdaecAC1/02jYq6zHrOwmC2EZDhDlKohVXQgGY5hRvzPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i98tz17q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="i98tz17q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99ECBC4CEF7; Wed, 4 Feb 2026 15:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770219293; bh=5KpP/PhRPy8Qy/5UB7otTC/JHlziHkIwWvkN0uNBWP0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i98tz17qu2uwcyDwPNntrtlysrP1FV0oS0fo8iu6eyzRAJuwZfntrD7D92iMG6PgT wF0xvDpI2DcNwiD0wrfd+pnY/m81yLQJJk/HHG1ri1qXxZ190ixgRu5DPWHPwKfSRY znzAwEvzs8Ow11XfOcxMkkSfNrKVVEXCa22tIvfA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, SeungJong Ha , Tamir Duberstein , Gary Guo , Jesung Yang , Miguel Ojeda Subject: [PATCH 6.18 098/122] scripts: generate_rust_analyzer: fix resolution of #[pin_data] macros Date: Wed, 4 Feb 2026 15:41:20 +0100 Message-ID: <20260204143855.375498698@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143851.857060534@linuxfoundation.org> References: <20260204143851.857060534@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: SeungJong Ha commit e440bc5c190cd0e5f148b2892aeb1f4bbbf54507 upstream. Currently, rust-analyzer fails to properly resolve structs annotated with `#[pin_data]`. This prevents IDE features like "Go to Definition" from working correctly for those structs. Add the missing configuration to `generate_rust_analyzer.py` to ensure the `pin-init` crate macros are handled correctly. Signed-off-by: SeungJong Ha Fixes: d7659acca7a3 ("rust: add pin-init crate build infrastructure") Cc: stable@vger.kernel.org Tested-by: Tamir Duberstein Acked-by: Tamir Duberstein Acked-by: Gary Guo Reviewed-by: Jesung Yang Link: https://patch.msgid.link/20260123-fix-pin-init-crate-dependecies-v2-1-bb1c2500e54c@gmail.com Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- scripts/generate_rust_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/generate_rust_analyzer.py +++ b/scripts/generate_rust_analyzer.py @@ -192,7 +192,7 @@ def generate_crates(srctree, objtree, sy append_crate( name, path, - ["core", "kernel"], + ["core", "kernel", "pin_init"], cfg=cfg, )