]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
raid6: fix riscv symbol undeclared warnigns
authorBen Dooks <ben.dooks@codethink.co.uk>
Mon, 22 Jun 2026 13:52:07 +0000 (14:52 +0100)
committerPaul Walmsley <pjw@kernel.org>
Thu, 25 Jun 2026 17:47:39 +0000 (11:47 -0600)
The riscv rvv.c file is missing the include of pq_arch.h
which defines all the exported functions. Include this
to remove the following sparse warnings:

lib/raid/raid6/riscv/rvv.c:1225:1: warning: symbol 'raid6_rvvx1' was not declared. Should it be static?
lib/raid/raid6/riscv/rvv.c:1226:1: warning: symbol 'raid6_rvvx2' was not declared. Should it be static?
lib/raid/raid6/riscv/rvv.c:1227:1: warning: symbol 'raid6_rvvx4' was not declared. Should it be static?
lib/raid/raid6/riscv/rvv.c:1228:1: warning: symbol 'raid6_rvvx8' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/20260622135207.480540-1-ben.dooks@codethink.co.uk
Signed-off-by: Paul Walmsley <pjw@kernel.org>
lib/raid/raid6/riscv/rvv.c

index 75c9dafedb2843e2fc47ad34fdad1c6c52a277b6..4ac50606f3dc12e1b36ba4c0d2841a0135bfc006 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "rvv.h"
+#include "pq_arch.h"
 
 #ifdef __riscv_vector
 #error "This code must be built without compiler support for vector"