Skip to content
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

rust/kernel: remove config #ifdef in Error.rs file #346

Merged
merged 1 commit into from
Jun 4, 2021

Commits on Jun 4, 2021

  1. rust/kernel: remove config #ifdef in Error.rs file

    The use of `#ifdef CONFIG_` statements in .c/.rs files should be
    avoided: it makes the code much more unmaintainable over time. See:
    https://lore.kernel.org/lkml/YLjWKwhp7akqyR1S@kroah.com/
    
    Use a Rust-C helper instead to leverage automatic `CONFIG` selection
    in C kernel headers.
    
    Signed-off-by: Sven Van Asbroeck <thesven73@gmail.com>
    Sven Van Asbroeck committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    40676ff View commit details
    Browse the repository at this point in the history