<p>Martin Roth has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20733">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/arch: Add guards on all header files<br><br>Change-Id: I45ddb1ab6000016cc31ffc16be729d1245f208a3<br>Signed-off-by: Martin Roth <martinroth@google.com><br>---<br>M src/arch/arm/include/clocks.h<br>M src/arch/arm64/include/clocks.h<br>M src/arch/mips/include/arch/bootblock_common.h<br>M src/arch/power8/include/arch/hlt.h<br>M src/arch/riscv/include/arch/hlt.h<br>M src/arch/x86/include/arch/bootblock_romcc.h<br>6 files changed, 30 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/20733/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/arch/arm/include/clocks.h b/src/arch/arm/include/clocks.h<br>index 60afb44..a846d42 100644<br>--- a/src/arch/arm/include/clocks.h<br>+++ b/src/arch/arm/include/clocks.h<br>@@ -26,6 +26,10 @@<br>  *<br>  * Please order the items by increasing Hz<br>  */<br>+<br>+#ifndef __ARCH_ARM_CLOCKS_H__<br>+#define __ARCH_ARM_CLOCKS_H__<br>+<br> enum {<br>    CLK_32768       = 32768,<br>      CLK_20M         = 20000000,<br>@@ -34,3 +38,5 @@<br>        CLK_216M        = 216000000,<br>  CLK_300M        = 300000000,<br> };<br>+<br>+#endif<br>diff --git a/src/arch/arm64/include/clocks.h b/src/arch/arm64/include/clocks.h<br>index 60afb44..91e6730 100644<br>--- a/src/arch/arm64/include/clocks.h<br>+++ b/src/arch/arm64/include/clocks.h<br>@@ -26,6 +26,10 @@<br>  *<br>  * Please order the items by increasing Hz<br>  */<br>+<br>+ #ifndef __ARCH_ARM64_CLOCKS_H__<br>+ #define __ARCH_ARM64_CLOCKS_H__<br>+<br> enum {<br>   CLK_32768       = 32768,<br>      CLK_20M         = 20000000,<br>@@ -34,3 +38,5 @@<br>        CLK_216M        = 216000000,<br>  CLK_300M        = 300000000,<br> };<br>+<br>+#endif<br>diff --git a/src/arch/mips/include/arch/bootblock_common.h b/src/arch/mips/include/arch/bootblock_common.h<br>index f5c11ba..8ad5a06 100644<br>--- a/src/arch/mips/include/arch/bootblock_common.h<br>+++ b/src/arch/mips/include/arch/bootblock_common.h<br>@@ -13,6 +13,9 @@<br>  * GNU General Public License for more details.<br>  */<br> <br>+#ifndef __BOOTBLOCK_COMMON_H__<br>+#define __BOOTBLOCK_COMMON_H__<br>+<br> #ifdef CONFIG_BOOTBLOCK_CPU_INIT<br> #include CONFIG_BOOTBLOCK_CPU_INIT<br> #endif<br>@@ -24,3 +27,4 @@<br> {<br> }<br> #endif<br>+#endif /* __BOOTBLOCK_COMMON_H__ */<br>diff --git a/src/arch/power8/include/arch/hlt.h b/src/arch/power8/include/arch/hlt.h<br>index 0fa910b..cfbf51e 100644<br>--- a/src/arch/power8/include/arch/hlt.h<br>+++ b/src/arch/power8/include/arch/hlt.h<br>@@ -11,8 +11,13 @@<br>  * GNU General Public License for more details.<br>  */<br> <br>+#ifndef __ARCH_POWER8_HLT_H__<br>+#define __ARCH_POWER8_HLT_H__<br>+<br> static inline __attribute__((always_inline)) void hlt(void)<br> {<br>         while (1)<br>             ;<br> }<br>+<br>+#endif<br>diff --git a/src/arch/riscv/include/arch/hlt.h b/src/arch/riscv/include/arch/hlt.h<br>index da02778..47e73aa 100644<br>--- a/src/arch/riscv/include/arch/hlt.h<br>+++ b/src/arch/riscv/include/arch/hlt.h<br>@@ -11,7 +11,12 @@<br>  * GNU General Public License for more details.<br>  */<br> <br>+ #ifndef __ARCH_RISCV_HLT_H__<br>+ #define __ARCH_RISCV_HLT_H__<br>+<br> static inline __attribute__((always_inline)) void hlt(void)<br> {<br>    while (1);<br> }<br>+<br>+#endif<br>diff --git a/src/arch/x86/include/arch/bootblock_romcc.h b/src/arch/x86/include/arch/bootblock_romcc.h<br>index 600d360..51f22b0 100644<br>--- a/src/arch/x86/include/arch/bootblock_romcc.h<br>+++ b/src/arch/x86/include/arch/bootblock_romcc.h<br>@@ -11,6 +11,9 @@<br>  * GNU General Public License for more details.<br>  */<br> <br>+#ifndef __BOOTBLOCK_ROMCC_H__<br>+#define __BOOTBLOCK_ROMCC_H__<br>+<br> #include <arch/cbfs.h><br> #include <cpu/x86/lapic/boot_cpu.c><br> #include <pc80/mc146818rtc.h><br>@@ -63,3 +66,4 @@<br>  }<br> }<br> #endif<br>+#endif /* __BOOTBLOCK_ROMCC_H__ */<br></pre><p>To view, visit <a href="https://review.coreboot.org/20733">change 20733</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20733"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I45ddb1ab6000016cc31ffc16be729d1245f208a3 </div>
<div style="display:none"> Gerrit-Change-Number: 20733 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Martin Roth <martinroth@google.com> </div>