# Re: \[PATCH v7 5/5\] rust: add arch\_static\_branch

- From: Miguel Ojeda \<hidden\>
- Date: 2024-08-21 17:55:04 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2024/08/2716788
- Thread: https://ratatoskr.run/linux-trace-kernel/2024/08/2710565/t.md

```text
On Wed, Aug 21, 2024 at 7:08 PM Boqun Feng [ref] wrote:
>
> Have you try this with "make O=<dir>"? I hit the following issue, but I
> am rebasing on rust-dev, so I might miss something:
>
>         error: couldn't read ../rust/kernel/arch_static_branch_asm.rs: No such file or directory (os error 2)
>           --> ../rust/kernel/jump_label.rs:39:17
>            |
>         39 | const _: &str = include!("arch_static_branch_asm.rs");
>            |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>            |
>            = note: this error originates in the macro `include` (in Nightly builds, run with -Z macro-backtrace for more info)
>
>         error: aborting due to 1 previous error

Yeah, we should use a `*TREE` everywhere. In addition, we should not
use `SRCTREE` but `OBJTREE`. It is my fault, this comes from my
prototype I gave Alice.

Please see the attached diff.

Cheers,
Miguel
```

## Attachments

- [objtree.diff](https://ratatoskr.run/linux-trace-kernel/2024/08/2716788/attachment/0) (text/x-patch, 1947 bytes)
