diff options
author | Alice Ryhl <[email protected]> | 2023-05-04 06:48:54 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-05-31 18:53:10 +0200 |
commit | e37b654c379e514357ccadb22c6291d3471fa5e5 (patch) | |
tree | f24d90d8c3bacad9001807aaf0d54a72d038fec8 /rust/kernel/task.rs | |
parent | 66bd7533ef19bf8a3515ce702013aba368f58df3 (diff) |
rust: error: add missing error codes
This adds the error codes from `include/linux/errno.h` to the list of
Rust error constants. These errors were not included originally, because
they are not supposed to be visible from userspace. However, they are
still a perfectly valid error to use when writing a kernel driver. For
example, you might want to return ERESTARTSYS if you receive a signal
during a call to `schedule`.
This patch inserts an annotation to skip rustfmt on the list of error
codes. Without it, three of the error codes are split over several
lines, which looks terribly inconsistent.
Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/task.rs')
0 files changed, 0 insertions, 0 deletions