Skip to content

Commit c2d3c84

Browse files
ConchuODpalmer-dabbelt
authored andcommitted
RISC-V: include cpufeature.h in cpufeature.c
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. Fixes: 62a31d6 ("RISC-V: hwprobe: Support probing of misaligned access performance") Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Evan Green <evan@rivosinc.com> Link: https://lore.kernel.org/r/20230420-wound-gizzard-2b2b589d9bea@spud Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 4db9e25 commit c2d3c84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/kernel/cpufeature.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/of.h>
1515
#include <asm/alternative.h>
1616
#include <asm/cacheflush.h>
17+
#include <asm/cpufeature.h>
1718
#include <asm/hwcap.h>
1819
#include <asm/patch.h>
1920
#include <asm/processor.h>

0 commit comments

Comments
 (0)