Skip to contentSkip to conversation

raid6: fix raid6_recov_rvv symbol undeclared warning

PATCH In review Ben Dooks 3 participants 3 messages Jun 22 – Jun 25

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 raid6: fix raid6_recov_rvv symbol undeclared warning

The riscv recov_rvv.c should have included pq_arch.h for the definition of raid6_recov_rvv. Add the include to fix the following sparse warning:

lib/raid/raid6/riscv/recov_rvv.c:218:32: warning: symbol 'raid6_recov_rvv' was not declared. Should it be static?

---
 lib/raid/raid6/riscv/recov_rvv.c | 1 +
 1 file changed, 1 insertion(+)
lib/raid/raid6/riscv/recov_rvv.c +1 -0
index 2305940276dd..78e158a3e332 100644
@@ -8,6 +8,7 @@
 #include <linux/raid/pq.h>
 #include "algos.h"
 #include "rvv.h"
+#include "pq_arch.h"
 
 static void __raid6_2data_recov_rvv(int bytes, u8 *p, u8 *q, u8 *dp,
 				    u8 *dq, const u8 *pbmul,
Signature · 1 line
2.37.2.352.g3c44437643
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Ben Dooks

The riscv recov_rvv.c should have included pq_arch.h for the definition of raid6_recov_rvv. Add the include to fix the following sparse warning:

lib/raid/raid6/riscv/recov_rvv.c:218:32: warning: symbol 'raid6_recov_rvv' was not declared. Should it be static?

maintainer
#2 lore raw
In reply to Ben Dooks
Quoted 7 lines · Ben Dooks

The riscv recov_rvv.c should have included pq_arch.h for the definition of raid6_recov_rvv. Add the include to fix the following sparse warning:

lib/raid/raid6/riscv/recov_rvv.c:218:32: warning: symbol 'raid6_recov_rvv' was not declared. Should it be static?

Thanks, queued for v7.2-rc.

- Paul