We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3f664 commit 7de859cCopy full SHA for 7de859c
rust/kernel/error.rs
@@ -99,7 +99,7 @@ impl Error {
99
///
100
/// It is a bug to pass an out-of-range `errno`. `EINVAL` would
101
/// be returned in such a case.
102
- pub(crate) fn from_errno(errno: core::ffi::c_int) -> Error {
+ pub fn from_errno(errno: core::ffi::c_int) -> Error {
103
if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 {
104
// TODO: Make it a `WARN_ONCE` once available.
105
crate::pr_warn!(
0 commit comments