From 2ca8b31ff54dd69a39e3c222f4512f46010507e3 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 28 Nov 2015 12:17:32 +0100 Subject: x86/smm: don't hide harmless declarations Hiding them requires #if CONFIG_HAVE_SMI_HANDLER instead of if (IS_ENABLED(CONFIG_HAVE_SMI_HANDLER)) Change-Id: Ib874cd98e195ad7437d05be1696004b29bf97a66 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/12565 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/include/cpu/cpu.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include') diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h index 28431c02b3..8db8085039 100644 --- a/src/include/cpu/cpu.h +++ b/src/include/cpu/cpu.h @@ -9,11 +9,9 @@ struct bus; void initialize_cpus(struct bus *cpu_bus); void asmlinkage secondary_cpu_init(unsigned int cpu_index); -#if CONFIG_HAVE_SMI_HANDLER void smm_init(void); void smm_lock(void); void smm_setup_structures(void *gnvs, void *tcg, void *smi1); -#endif #define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver"))) #ifndef __SIMPLE_DEVICE__ -- cgit v1.2.3