RISC-V: include cpufeature.h in cpufeature.c
authorConor Dooley <conor@kernel.org>
Thu, 20 Apr 2023 18:30:16 +0000 (19:30 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 2 May 2023 00:19:27 +0000 (17:19 -0700)
commitc2d3c8441e3ddbfe41fea9282ddc6ee372e154cd
tree6357cd0cc2fc56855497e4547513a7ff2425e7e0
parent4db9e253e7016e6588620ad02d4ed326107506db
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: 62a31d6e38bd ("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>
arch/riscv/kernel/cpufeature.c