Skip to content

Commit 7de859c

Browse files
committed
rust: kernel: errno: change visibility of Error::from_errno
Signed-off-by: Fabien Parent <[email protected]>
1 parent bc3f664 commit 7de859c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Error {
9999
///
100100
/// It is a bug to pass an out-of-range `errno`. `EINVAL` would
101101
/// be returned in such a case.
102-
pub(crate) fn from_errno(errno: core::ffi::c_int) -> Error {
102+
pub fn from_errno(errno: core::ffi::c_int) -> Error {
103103
if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 {
104104
// TODO: Make it a `WARN_ONCE` once available.
105105
crate::pr_warn!(

0 commit comments

Comments
 (0)