Skip to content

[PW_SID:955072] [fixes,v2,1/2] riscv: Replace function-like macro by static inline function#316

Closed
linux-riscv-bot wants to merge 3 commits into
workflow__riscv__fixesfrom
pw955072
Closed

[PW_SID:955072] [fixes,v2,1/2] riscv: Replace function-like macro by static inline function#316
linux-riscv-bot wants to merge 3 commits into
workflow__riscv__fixesfrom
pw955072

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 955072 applied to workflow__riscv__fixes

Name: [fixes,v2,1/2] riscv: Replace function-like macro by static inline function
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=955072
Version: 2

Linux RISC-V bot and others added 3 commits April 16, 2025 18:23
The flush_icache_range() function is implemented as a "function-like
macro with unused parameters", which can result in "unused variables"
warnings.

Replace the macro with a static inline function, as advised by
Documentation/process/coding-style.rst.

Fixes: 08f051e ("RISC-V: Flush I$ when making a dirty page executable")
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The XOL (execute out-of-line) buffer is used to single-step the
replaced instruction(s) for uprobes. The RISC-V port was missing a
proper fence.i (i$ flushing) after constructing the XOL buffer, which
can result in incorrect execution of stale/broken instructions.

This was found running the BPF selftests "test_progs:
uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the
uprobes tests randomly blew up.

Reviewed-by: Guo Ren <guoren@kernel.org>
Fixes: 7478408 ("riscv: Add uprobes supported")
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 100.94 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1402.81 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1935.18 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.60 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 20.62 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.74 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 38.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.34 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
kdoc
Desc: Detects for kdoc errors
Duration: 0.86 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[fixes,v2,1/2] riscv: Replace function-like macro by static inline function"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 106.10 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 936.41 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1245.68 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.42 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.04 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.73 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 38.20 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
kdoc
Desc: Detects for kdoc errors
Duration: 1.09 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[fixes,v2,2/2] riscv: uprobes: Add missing fence.i after building the XOL buffer"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 6c2725a to c8da138 Compare April 24, 2025 20:46
@linux-riscv-bot linux-riscv-bot deleted the pw955072 branch April 24, 2025 20:46
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