src/include: add IS_ENABLED() around Kconfig symbol references

Change-Id: I2fbe6376a1cf98d328464556917638a5679641d2
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20354
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Martin Roth
2017-06-24 14:13:53 -06:00
parent 1858d6a90a
commit 9634547eae
19 changed files with 28 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#ifndef SMP_ATOMIC_H
#define SMP_ATOMIC_H
#if CONFIG_SMP
#if IS_ENABLED(CONFIG_SMP)
#include <arch/smp/atomic.h>
#else

View File

@@ -1,7 +1,7 @@
#ifndef _SMP_NODE_H_
#define _SMP_NODE_H_
#if CONFIG_SMP
#if IS_ENABLED(CONFIG_SMP)
int boot_cpu(void);
#else
#define boot_cpu(x) 1

View File

@@ -1,7 +1,7 @@
#ifndef SMP_SPINLOCK_H
#define SMP_SPINLOCK_H
#if CONFIG_SMP
#if IS_ENABLED(CONFIG_SMP)
#include <arch/smp/spinlock.h>
#else /* !CONFIG_SMP */