-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build for Linux 6.1 #3
Conversation
Yeah, this template was intended to match the |
Raphael, could you please rebase it for the current mainline? The |
It fails without the Or do you mean I should update it for 6.2-rc4? |
Yeah, I meant to the latest Linus' tag (the change is there since -rc1), 6.2 should be out in a few weeks. |
Or we can put this in, and you can send another PR for the |
Sounds good to me 🙂 |
Btw. my adventures with Rust Linux kernel modules are documented here: |
Nice! Thanks for documenting it! :) By the way, on:
I would say it is indeed a bit too early to put things in distros -- many pieces will need to arrive into mainline to make it useful for end users and to make it production ready. But, of course, playing with it and starting to see how it could be eventually bundled in distros is great :) As for the metadata files etc.: everything must be compiled with the exact same toolchain. In any case, for playing around with Rust modules, it is easier to do so in-tree, since as you have seen, you have to compile the kernel with Rust support enabled anyway (and currently to do anything useful you will need to add extra abstractions to the |
I tried building the kernel module for the Linux 6.1 kernel and these were the changes that were needed. I'm not sure if it makes sense to merge this, since it is probably due to changes in https://github.com/Rust-for-Linux/linux which were not yet up-streamed, but if anyone tries something similar this diff might be helpful.