Skip to content

Commit 594ffcf

Browse files
charlie-rivospalmer-dabbelt
authored andcommitted
riscv: Make riscv_isa_vendor_ext_andes array static
Since this array is only used in this file, it should be static. Signed-off-by: Charlie Jenkins <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 3cc754c commit 594ffcf

File tree

1 file changed

+1
-1
lines changed
  • arch/riscv/kernel/vendor_extensions

1 file changed

+1
-1
lines changed

arch/riscv/kernel/vendor_extensions/andes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <linux/types.h>
99

1010
/* All Andes vendor extensions supported in Linux */
11-
const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = {
11+
static const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = {
1212
__RISCV_ISA_EXT_DATA(xandespmu, RISCV_ISA_VENDOR_EXT_XANDESPMU),
1313
};
1414

0 commit comments

Comments
 (0)