From: Ingo Molnar Date: Fri, 27 Jan 2017 11:03:00 +0000 (+0100) Subject: x86/boot/e820: Remove assembly guard from asm/e820/types.h X-Git-Tag: v4.12-rc1~150^2~5^2~50 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0bd00d6feabdce70c89b298317309d2f12ceba4;p=karo-tx-linux.git x86/boot/e820: Remove assembly guard from asm/e820/types.h There's an assembly guard in asm/e820/types.h, and only a single .S file includes this header: arch/x86/boot/header.S, but it does not actually make use of any of the E820 defines. Remove the inclusion and remove the assembly guard as well. No change in functionality. Cc: Alex Thorlton Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Dan Williams Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Huang, Ying Cc: Josh Poimboeuf Cc: Juergen Gross Cc: Linus Torvalds Cc: Paul Jackson Cc: Peter Zijlstra Cc: Rafael J. Wysocki Cc: Tejun Heo Cc: Thomas Gleixner Cc: Wei Yang Cc: Yinghai Lu Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 398b290c4c00..2ed8f0c25def 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/x86/include/asm/e820/types.h b/arch/x86/include/asm/e820/types.h index b05e812ff4f2..464cfe827396 100644 --- a/arch/x86/include/asm/e820/types.h +++ b/arch/x86/include/asm/e820/types.h @@ -65,9 +65,6 @@ */ #define E820_RESERVED_KERN 128 -#ifndef __ASSEMBLY__ -#include - /* * The whole array of E820 entries: */ @@ -88,6 +85,4 @@ struct e820map { #define BIOS_ROM_BASE 0xffe00000 #define BIOS_ROM_END 0xffffffff -#endif /* __ASSEMBLY__ */ - #endif /* _ASM_E820_TYPES_H */