riscv: make riscv_isa_vendor_ext_andes[] static
PATCH 1/1 riscv: make riscv_isa_vendor_ext_andes[] static
The riscv_isa_vendor_ext_andes array is not exported out of the file it is in, so make it static to fix the following sparse warning:
arch/riscv/kernel/vendor_extensions/andes.c:11:33: warning: symbol 'riscv_isa_vendor_ext_andes' was not declared. Should it be static?
--- arch/riscv/kernel/vendor_extensions/andes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/kernel/vendor_extensions/andes.c +1 -1
@@ -8,7 +8,7 @@#include <linux/types.h> /* All Andes vendor extensions supported in Linux */ -const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = { +static const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = {__RISCV_ISA_EXT_DATA (xandespmu,RISCV_ISA_VENDOR_EXT_XANDESPMU ), };
Signature · 7 lines
2.37.2.352.g3c44437643 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <[email protected]>:
Quoted 9 lines · On Thu, 19 Sep 2024 07:15:24 +0100 you wrote:
The
riscv_isa_vendor_ext_andesarray is not exported out of the file it is in, so make it static to fix the following sparse warning:
arch/riscv/kernel/vendor_extensions/andes.c:11:33: warning: symbol 'riscv_isa_vendor_ext_andes' was not declared. Should it be static?Signed-off-by Ben Dooks <[email protected]>[...]
Here is the summary with links:
- riscv: make riscv_isa_vendor_ext_andes[] static
https://git.kernel.org/riscv/c/594ffcf4efe5
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html