RISC-V: include cpufeature.h in cpufeature.c
PATCH 1/1 RISC-V: include cpufeature.h in cpufeature.c
From: Conor Dooley <[email protected]>
Automation complains:
warning: symbol '__pcpu_scope_misaligned_access_speed' was not declared. Should it be static?
cpufeature.c doesn't actually include the header of the same name, as it had not previously used anything from it.
The per-cpu variable is declared there, so include it to silence the complaints.
---
CC: Evan Green <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: [email protected]
--- arch/riscv/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+)
arch/riscv/kernel/cpufeature.c +1 -0
@@ -14,6 +14,7 @@#include <linux/of.h> #include <asm/alternative.h> #include <asm/cacheflush.h> +#include <asm/cpufeature.h> #include <asm/hwcap.h> #include <asm/patch.h> #include <asm/processor.h>
Signature · 7 lines
2.39.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 11 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Automation complains:
warning: symbol '__pcpu_scope_misaligned_access_speed' was not declared. Should it be static?
cpufeature.cdoesn't actually include the header of the same name, as it had not previously used anything from it.
The per-cpu variable is declared there, so include it to silence the complaints.
Quoted 8 lines
Fixes 62a31d6e38bd ("RISC-V: hwprobe: Support probing of misaligned access performance")Signed-off-by Conor Dooley <[email protected]>---
CC: Evan Green <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: [email protected]
---
Thanks Conor!
ps - I'm working on that modprobe fix now, will send something shortly.
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Palmer Dabbelt
AppliedQuoted 9 lines · Conor Dooley
Automation complains:
warning: symbol '__pcpu_scope_misaligned_access_speed' was not declared. Should it be static?
cpufeature.cdoesn't actually include the header of the same name, as it had not previously used anything from it.
The per-cpu variable is declared there, so include it to silence the complaints.[...]
Applied, thanks!
[1/1] RISC-V: include cpufeature.h in cpufeature.c
https://git.kernel.org/palmer/c/c2d3c8441e3d
Best regards,
Signature · 7 lines
Palmer Dabbelt <[email protected]> _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv