[PW_SID:1088968] [v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()#1860
[PW_SID:1088968] [v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()#1860linux-riscv-bot wants to merge 2 commits into
Conversation
…_hartid() riscv_of_parent_hartid() returns -1 when no valid hart ID is found among the parent nodes. This is non-standard; Linux kernel convention for a "not found" condition is -ENODEV. Additionally, since several callers propagate this return value up the call chain, a raw -1 could be misinterpreted as -EPERM by code inspecting errno values. Replace the -1 with -ENODEV for clarity and consistency with the rest of the RISC-V CPU handling code. Signed-off-by: Mohamed Ayman <mohamedaymanworkspace@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
|
Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()" |
2c3b264 to
2d4fcdd
Compare
PR for series 1088968 applied to workflow__riscv__fixes
Name: [v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1088968
Version: 3