]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Replace function-like macro by static inline function
authorBjörn Töpel <bjorn@rivosinc.com>
Sat, 19 Apr 2025 11:13:59 +0000 (13:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:30:02 +0000 (16:30 +0100)
commit0b1ac9743f3d9cfced2ac3cb9f274c0675bd4189
treeca080d32770571a543cbcbb6e46b7d1aca4f814b
parentd03ee4185486672deff845afc52bb8af4b70a04f
riscv: Replace function-like macro by static inline function

commit 121f34341d396b666d8a90b24768b40e08ca0d61 upstream.

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: 08f051eda33b ("RISC-V: Flush I$ when making a dirty page executable")
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20250419111402.1660267-1-bjorn@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Ron Economos <re@w6rz.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/include/asm/cacheflush.h