diff options
author | Conor Dooley <conor@kernel.org> | 2023-04-20 19:30:16 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-05-01 17:19:27 -0700 |
commit | c2d3c8441e3ddbfe41fea9282ddc6ee372e154cd (patch) | |
tree | 6357cd0cc2fc56855497e4547513a7ff2425e7e0 | |
parent | 4db9e253e7016e6588620ad02d4ed326107506db (diff) | |
download | linux-c2d3c8441e3ddbfe41fea9282ddc6ee372e154cd.tar.gz linux-c2d3c8441e3ddbfe41fea9282ddc6ee372e154cd.tar.bz2 linux-c2d3c8441e3ddbfe41fea9282ddc6ee372e154cd.zip |
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>
-rw-r--r-- | arch/riscv/kernel/cpufeature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 52585e088873..00f9f57a8566 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -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> |