Randy Dunlap 6845376713 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 <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-03-11 12:42:49 -08:00
..
2020-10-30 21:57:05 +01:00
2021-11-17 10:36:15 -05:00
2021-06-28 14:04:24 -07:00
2020-12-22 13:34:27 -08:00
2020-12-22 13:34:27 -08:00
2020-05-07 00:41:47 +02:00
2021-12-17 11:34:38 +00:00
2018-05-19 11:53:46 +01:00
2020-07-30 13:01:04 -07:00
2021-07-01 11:06:03 -07:00
2020-12-22 13:34:27 -08:00
2017-11-16 14:05:12 -08:00
2021-03-22 02:45:52 +01:00
2020-10-13 18:38:31 -07:00
2020-06-09 09:39:10 -07:00
2019-07-11 10:09:44 -07:00
2020-06-09 09:39:10 -07:00