]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: Fix sparse warning in vendor_extensions/sifive.c
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Fri, 20 Jun 2025 12:08:11 +0000 (12:08 +0000)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 23 Jun 2025 22:57:59 +0000 (15:57 -0700)
commitb0843f836126c980fb31923563c86ec52e8b9514
treec366335d9f9fe19a0d1c75f1ea3b4deb331a2d93
parent2f73c62d4e13df67380ff6faca39eec2bf08dd93
riscv: Fix sparse warning in vendor_extensions/sifive.c

sparse reports the following warning:

arch/riscv/kernel/vendor_extensions/sifive.c:11:33: sparse: sparse: symbol 'riscv_isa_vendor_ext_sifive' was not declared. Should it be static?

So as this struct is only used in this file, make it static.

Fixes: 2d147d77ae6e ("riscv: Add SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensions")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505072100.TZlEp8h1-lkp@intel.com/
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250620-dev-alex-fix_sparse_sifive_v1-v1-1-efa3a6f93846@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/kernel/vendor_extensions/sifive.c