Skip to content

Make from_errno use try_from_errno #1125

Open

Description

@ojeda

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

  1. added
    easyExpected to be an easy issue to resolve.
    on Oct 7, 2024
  2. cristiangabor commented on Oct 8, 2024

    @cristiangabor

    I am new to the Kernel development process and I would like to participate if is possible.

  3. ojeda commented on Oct 8, 2024

    @ojeda
    MemberAuthor

    Sure, please go ahead!

  4. oddgarden6465 commented on Nov 4, 2024

    @oddgarden6465

    Hello, is this issue still available ? I would like to participate if possible.

  5. ojeda commented on Nov 4, 2024

    @ojeda
    MemberAuthor

    I think we didn't get a patch from @cristiangabor yet -- Cristian, do you plan to send it? Thanks!

  6. cristiangabor commented on Nov 4, 2024

    @cristiangabor

    Unfortunately I did not made the fix. @haveheartt please go ahead with the implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    easyExpected to be an easy issue to resolve.good first issueGood for newcomers• libRelated to the `rust/` library.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions