rust: error: add codes from `errno-base.h`
authorViktor Garske <viktor@v-gar.de>
Thu, 10 Nov 2022 16:41:21 +0000 (17:41 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 4 Dec 2022 00:59:15 +0000 (01:59 +0100)
commit266def2a0f5bbe44b11902bd4c93b9c5d8b8d708
tree1ab1a79d38ff78543fa7c0ec9f360c66fb199978
parent4b0c68bd0d8b0e23ab1763d4a6632720dd3f1a83
rust: error: add codes from `errno-base.h`

Only a few codes were added so far. With the `declare_err!`
macro in place, add the remaining ones (which is most of them)
from `include/uapi/asm-generic/errno-base.h`.

Co-developed-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: Viktor Garske <viktor@v-gar.de>
Reviewed-by: Gary Guo <gary@garyguo.net>
[Reworded, adapted for upstream and applied latest changes]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/error.rs