* [PATCH] riscv: make riscv_isa_vendor_ext_andes[] static
@ 2024-09-19 6:15 Ben Dooks
2024-10-01 11:35 ` patchwork-bot+linux-riscv
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2024-09-19 6:15 UTC (permalink / raw)
To: linux-riscv; +Cc: linux-kernel, charlie, palmer, paul.walmsley, Ben Dooks
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
arch/riscv/kernel/vendor_extensions/andes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kernel/vendor_extensions/andes.c b/arch/riscv/kernel/vendor_extensions/andes.c
index ec688c88456a..51f302b6d503 100644
--- a/arch/riscv/kernel/vendor_extensions/andes.c
+++ b/arch/riscv/kernel/vendor_extensions/andes.c
@@ -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),
};
--
2.37.2.352.g3c44437643
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] riscv: make riscv_isa_vendor_ext_andes[] static
2024-09-19 6:15 [PATCH] riscv: make riscv_isa_vendor_ext_andes[] static Ben Dooks
@ 2024-10-01 11:35 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-10-01 11:35 UTC (permalink / raw)
To: Ben Dooks; +Cc: linux-riscv, linux-kernel, charlie, palmer, paul.walmsley
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Thu, 19 Sep 2024 07:15:24 +0100 you wrote:
> 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?
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-01 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19 6:15 [PATCH] riscv: make riscv_isa_vendor_ext_andes[] static Ben Dooks
2024-10-01 11:35 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox