[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package for development of out-of-tree kernel modules written in Rust



On Thu, Apr 03, 2025 at 12:33:44AM +0200, NoisyCoil wrote:
> On 02/04/25 23:33, NoisyCoil wrote:
> > I am in fact able to build the reference out-of-tree kernel module
> > without libmacros.so.
> 
> I take that back, I had deleted libmacros.so from the wrong kernel package
> version. Not only one of the proc macros defined in the macros crate is
> module!(), which is used to declare kernel modules, but without libmacros.so
> the kernel crate is not even found:
> 
> error[E0463]: can't find crate for `kernel`
>  --> /home/noisycoil/Tmp/rust-out-of-tree-module/rust_out_of_tree.rs:5:5
>   |
> 5 | use kernel::prelude::*;
>   |     ^^^^^^ can't find crate

Please reference the bug report for this.  Removing a file needs to
produce a file not found error if it is required.

But this means this library needs to be shipped in linux-kbuild and
properly referenced in the build.

Bastian

-- 
... The prejudices people feel about each other disappear when they get
to know each other.
		-- Kirk, "Elaan of Troyius", stardate 4372.5


Reply to: