You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make from_errno use try_from_errno (available in rust-next).
This also allows to remove unsafe code and a comment or two too.
This requires submitting a proper patch to the LKML and the Rust for Linux mailing list. Please recall to test your changes (including generating the documentation if changed, running the Rust doctests if changed, etc.), to use a proper title for the commit, to sign your commit under the Developer's Certificate of Origin and to add a Suggested-by: tag and a Link: tag to this issue. Please see https://rust-for-linux.com/contributing for details.
Please take this issue only if you are new to the kernel development process and you would like to use it as a test to submit your first patch to the kernel. Please do not take it if you do not plan to make other contributions to the kernel.
Activity
cristiangabor commentedon Oct 8, 2024
I am new to the Kernel development process and I would like to participate if is possible.
ojeda commentedon Oct 8, 2024
Sure, please go ahead!
oddgarden6465 commentedon Nov 4, 2024
Hello, is this issue still available ? I would like to participate if possible.
ojeda commentedon Nov 4, 2024
I think we didn't get a patch from @cristiangabor yet -- Cristian, do you plan to send it? Thanks!
cristiangabor commentedon Nov 4, 2024
Unfortunately I did not made the fix. @haveheartt please go ahead with the implementation!
ojeda commentedon Nov 5, 2024
https://lore.kernel.org/rust-for-linux/20241104185135.18974-1-daniel@sedlak.dev/
https://lore.kernel.org/rust-for-linux/20241104200014.12996-1-guilhermev2huehue@gmail.com/
https://lore.kernel.org/rust-for-linux/20241105114819.14051-1-guilhermev2huehue@gmail.com/
rust: error: modify `from_errno` to use `try_from_errno`
rust: error: modify `from_errno` to use `try_from_errno`
rust: error: modify `from_errno` to use `try_from_errno`
rust: error: modify `from_errno` to use `try_from_errno`
rust: error: modify `from_errno` to use `try_from_errno`
rust: error: modify `from_errno` to use `try_from_errno`