diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2023-08-03 13:32:54 -0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-08-08 17:25:44 +0530 |
commit | a044ef71043ebc23903f657fd51b10783d34918b (patch) | |
tree | 912a19b75581992c7f9f2206a860f3eee954612d /scripts/rustdoc_test_builder.rs | |
parent | 2a88f38cd58d026c0e13f4aaa495965d4e9626b9 (diff) |
RISC-V: KVM: use ENOENT in *_one_reg() when extension is unavailable
Following a similar logic as the previous patch let's minimize the EINVAL
usage in *_one_reg() APIs by using ENOENT when an extension that
implements the reg is not available.
For consistency we're also replacing an EOPNOTSUPP instance that should
be an ENOENT since it's an "extension is not available" error.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions