forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 444
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
Make from_errno
use try_from_errno
#1125
Labels
easy
Expected to be an easy issue to resolve.
good first issue
Good for newcomers
• lib
Related to the `rust/` library.
Comments
I am new to the Kernel development process and I would like to participate if is possible. |
Sure, please go ahead! |
Hello, is this issue still available ? I would like to participate if possible. |
I think we didn't get a patch from @cristiangabor yet -- Cristian, do you plan to send it? Thanks! |
Unfortunately I did not made the fix. @haveheartt please go ahead with the implementation! |
intel-lab-lkp
pushed a commit
to intel-lab-lkp/linux
that referenced
this issue
Nov 25, 2024
Modify the from_errno function to use try_from_errno to reduce code duplication while still maintaining all existing behavior and error handling and also reduces unsafe code. Link: Rust-for-Linux#1125 Suggested-by: Miguel Ojeda <[email protected]> Co-developed-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]>
intel-lab-lkp
pushed a commit
to intel-lab-lkp/linux
that referenced
this issue
Dec 7, 2024
Modify the from_errno function to use try_from_errno to reduce code duplication while still maintaining all existing behavior and error handling and also reduces unsafe code. Link: Rust-for-Linux#1125 Suggested-by: Miguel Ojeda <[email protected]> Co-developed-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]>
ojeda
pushed a commit
that referenced
this issue
Dec 17, 2024
Modify the from_errno function to use try_from_errno to reduce code duplication while still maintaining all existing behavior and error handling and also reduces unsafe code. Link: #1125 Suggested-by: Miguel Ojeda <[email protected]> Co-developed-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
senekor
pushed a commit
to senekor/linux
that referenced
this issue
Feb 15, 2025
Modify the from_errno function to use try_from_errno to reduce code duplication while still maintaining all existing behavior and error handling and also reduces unsafe code. Link: Rust-for-Linux#1125 Suggested-by: Miguel Ojeda <[email protected]> Co-developed-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
jannau
pushed a commit
to AsahiLinux/linux
that referenced
this issue
Mar 1, 2025
Modify the from_errno function to use try_from_errno to reduce code duplication while still maintaining all existing behavior and error handling and also reduces unsafe code. Link: Rust-for-Linux#1125 Suggested-by: Miguel Ojeda <[email protected]> Co-developed-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Guilherme Augusto Martins da Silva <[email protected]> Signed-off-by: Daniel Sedlak <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
easy
Expected to be an easy issue to resolve.
good first issue
Good for newcomers
• lib
Related to the `rust/` library.
Make
from_errno
usetry_from_errno
(available inrust-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 aLink:
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.
The text was updated successfully, but these errors were encountered: