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 <patrick@georgi-clan.de> Reviewed-on: https://review.coreboot.org/12565 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
551b3830c6
commit
2ca8b31ff5
|
@ -9,11 +9,9 @@ struct bus;
|
||||||
void initialize_cpus(struct bus *cpu_bus);
|
void initialize_cpus(struct bus *cpu_bus);
|
||||||
void asmlinkage secondary_cpu_init(unsigned int cpu_index);
|
void asmlinkage secondary_cpu_init(unsigned int cpu_index);
|
||||||
|
|
||||||
#if CONFIG_HAVE_SMI_HANDLER
|
|
||||||
void smm_init(void);
|
void smm_init(void);
|
||||||
void smm_lock(void);
|
void smm_lock(void);
|
||||||
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
|
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
|
||||||
#endif
|
|
||||||
|
|
||||||
#define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver")))
|
#define __cpu_driver __attribute__ ((used,__section__(".rodata.cpu_driver")))
|
||||||
#ifndef __SIMPLE_DEVICE__
|
#ifndef __SIMPLE_DEVICE__
|
||||||
|
|
Loading…
Reference in New Issue