diff options
| author | Randy Dunlap <[email protected]> | 2022-03-11 19:49:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-11 20:42:49 +0000 |
| commit | 68453767131a5deec1e8f9ac92a9042f929e585d (patch) | |
| tree | 25df2cf84e0711a500b269971dc3e181f7bb9445 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | Merge tag 'riscv-for-linus-5.17-rc8' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
| download | kernel-68453767131a5deec1e8f9ac92a9042f929e585d.tar.gz kernel-68453767131a5deec1e8f9ac92a9042f929e585d.zip | |
ARM: Spectre-BHB: provide empty stub for non-config
When CONFIG_GENERIC_CPU_VULNERABILITIES is not set, references
to spectre_v2_update_state() cause a build error, so provide an
empty stub for that function when the Kconfig option is not set.
Fixes this build error:
arm-linux-gnueabi-ld: arch/arm/mm/proc-v7-bugs.o: in function `cpu_v7_bugs_init':
proc-v7-bugs.c:(.text+0x52): undefined reference to `spectre_v2_update_state'
arm-linux-gnueabi-ld: proc-v7-bugs.c:(.text+0x82): undefined reference to `spectre_v2_update_state'
Fixes: b9baf5c8c5c3 ("ARM: Spectre-BHB workaround")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Cc: Russell King <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: [email protected]
Cc: [email protected]
Acked-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
