Skip to contentSkip to conversation

linux-next: build failure after merge of the vfs-brauner tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Aug 31, 2025 – Sep 1, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the vfs-brauner tree, today's linux-next build (x86_64 allmodconfig) failed like this:

error[E0425]: cannot find function to_result in this scope
--> rust/kernel/fs/file.rs:402:9

    |
402 |         to_result(fd)?;
    |         ^^^^^^^^^ not found in this scope
    |
help: consider importing this function
    |
10  + use crate::error::to_result;
    |

error: aborting due to 1 previous error

For more information about this error, try rustc --explain E0425.

Caused by commit

bcd0b5f0199b ("rust: file: use to_result for error handling")

I have used te vfs-brauner tree from next-20250829 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 18 lines · On Mon, 1 Sep 2025 09:34:22 +1000 Stephen Rothwell <[email protected]> wrote:

Hi all,

After merging the vfs-brauner tree, today's linux-next build (x86_64 allmodconfig) failed like this:

error[E0425]: cannot find function to_result in this scope
--> rust/kernel/fs/file.rs:402:9

    |
402 |         to_result(fd)?;
    |         ^^^^^^^^^ not found in this scope
    |
help: consider importing this function
    |
10  + use crate::error::to_result;
    |

error: aborting due to 1 previous error

Quoted 8 lines

For more information about this error, try rustc --explain E0425.

Caused by commit

bcd0b5f0199b ("rust: file: use to_result for error handling")

I have used te vfs-brauner tree from next-20250829 for today.

Hi Stephen,

Fyi, I sent the fix patch ([1]) previous week already.

[1]:
https://lore.kernel.org/all/[email protected]/

Regards,
Onur