[PATCH 2/3] scripts: generate_rust_analyzer: Add pin_init -> compiler_builtins dep

Tamir Duberstein posted 3 patches 6 months, 2 weeks ago
[PATCH 2/3] scripts: generate_rust_analyzer: Add pin_init -> compiler_builtins dep
Posted by Tamir Duberstein 6 months, 2 weeks ago
Add a dependency edge from `pin_init` to `compiler_builtins` to
`scripts/generate_rust_analyzer.py` to match `rust/Makefile`. This has
been incorrect since commit d7659acca7a3 ("rust: add pin-init crate
build infrastructure").

Signed-off-by: Tamir Duberstein <tamird@kernel.org>
---
 scripts/generate_rust_analyzer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
index 4639a756a932..451d00dfc08d 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -110,7 +110,7 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs, core_edit
     append_crate(
         "pin_init",
         srctree / "rust" / "pin-init" / "src" / "lib.rs",
-        ["core", "pin_init_internal", "macros"],
+        ["core", "compiler_builtins", "pin_init_internal", "macros"],
         cfg=["kernel"],
     )
 

-- 
2.50.1
Re: [PATCH 2/3] scripts: generate_rust_analyzer: Add pin_init -> compiler_builtins dep
Posted by Jesung Yang 3 weeks, 4 days ago
On Thu Jul 24, 2025 at 12:39 AM KST, Tamir Duberstein wrote:
> Add a dependency edge from `pin_init` to `compiler_builtins` to
> `scripts/generate_rust_analyzer.py` to match `rust/Makefile`. This has
> been incorrect since commit d7659acca7a3 ("rust: add pin-init crate
> build infrastructure").
>
> Signed-off-by: Tamir Duberstein <tamird@kernel.org>
> ---
>  scripts/generate_rust_analyzer.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
> index 4639a756a932..451d00dfc08d 100755
> --- a/scripts/generate_rust_analyzer.py
> +++ b/scripts/generate_rust_analyzer.py
> @@ -110,7 +110,7 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs, core_edit
>      append_crate(
>          "pin_init",
>          srctree / "rust" / "pin-init" / "src" / "lib.rs",
> -        ["core", "pin_init_internal", "macros"],
> +        ["core", "compiler_builtins", "pin_init_internal", "macros"],
>          cfg=["kernel"],
>      )
>  

Similar to above, these tags are needed:

+Fixes: d7659acca7a3 ("rust: add pin-init crate build infrastructure")
+Cc: <stable@...>

For the change itself,

Reviewed-by: Jesung Yang <y.j3ms.n@gmail.com>

Best regards,
Jesung