]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/boot/e820: Remove assembly guard from asm/e820/types.h
authorIngo Molnar <mingo@kernel.org>
Fri, 27 Jan 2017 11:03:00 +0000 (12:03 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 28 Jan 2017 08:31:15 +0000 (09:31 +0100)
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 <athorlton@sgi.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Huang, Ying <ying.huang@intel.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Jackson <pj@sgi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/header.S
arch/x86/include/asm/e820/types.h

index 398b290c4c00180d6a74c9c185b3477551caf65c..2ed8f0c25def4b01dd50107425c5b6e54d60f2eb 100644 (file)
@@ -18,7 +18,6 @@
 #include <asm/segment.h>
 #include <generated/utsrelease.h>
 #include <asm/boot.h>
-#include <asm/e820/api.h>
 #include <asm/page_types.h>
 #include <asm/setup.h>
 #include <asm/bootparam.h>
index b05e812ff4f2c3f61bb00030941cc4454372b6d2..464cfe8273960e0fd300ee1deeaa51553d5fa414 100644 (file)
@@ -65,9 +65,6 @@
  */
 #define E820_RESERVED_KERN     128
 
-#ifndef __ASSEMBLY__
-#include <linux/types.h>
-
 /*
  * 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 */