Skip to content

[PW_SID:1088968] [v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()#1860

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1088968
Closed

[PW_SID:1088968] [v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()#1860
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1088968

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

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

Linux RISC-V bot and others added 2 commits May 2, 2026 08:13
…_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>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 139.76 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1135.37 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1700.53 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.78 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.74 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 86.48 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
kdoc
Desc: Detects for kdoc errors
Duration: 0.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v3] riscv: Replace non-standard -1 return with -ENODEV in riscv_of_parent_hartid()"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 2c3b264 to 2d4fcdd Compare May 10, 2026 02:08
@linux-riscv-bot linux-riscv-bot deleted the pw1088968 branch May 11, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants