Re: [PATCH v7 5/5] rust: add arch_static_branch

From
Miguel Ojeda <hidden>
Date
2024-08-21 17:55:04
Also in
linux-arch, linux-riscv, lkml, loongarch, rust-for-linux
Reply to
Boqun Feng, 2024-08-21
On Wed, Aug 21, 2024 at 7:08 PM Boqun Feng [off-list 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

Thread (9 messages) 9 messages, 3 authors, last reply 2024-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help