diff options
author | Arnd Bergmann <[email protected]> | 2023-05-16 18:06:32 +0200 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-05-25 17:44:02 +0100 |
commit | 010089e9d3fe689e439fe3b78ed859a0782fbad0 (patch) | |
tree | 39710124dec0b8879b0d539edfd40337ea35b94d /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | ec3a3db7100ddebb32ed5b1052c1cd1136057230 (diff) |
arm64: spectre: provide prototypes for internal functions
The helpers in proton-pack.c are called from assembler and have
no prototype in a header, which causes a W=1 warning:
arch/arm64/kernel/proton-pack.c:568:13: error: no previous prototype for 'spectre_v4_patch_fw_mitigation_enable' [-Werror=missing-prototypes]
arch/arm64/kernel/proton-pack.c:588:13: error: no previous prototype for 'smccc_patch_fw_mitigation_conduit' [-Werror=missing-prototypes]
arch/arm64/kernel/proton-pack.c:1064:14: error: no previous prototype for 'spectre_bhb_patch_loop_mitigation_enable' [-Werror=missing-prototypes]
arch/arm64/kernel/proton-pack.c:1075:14: error: no previous prototype for 'spectre_bhb_patch_fw_mitigation_enabled' [-Werror=missing-prototypes]
Add these to asm/spectre.h, which contains related declarations
already.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions