Commit-ID: 70a9d8184ccecf7a38848531fb4767a85134f464 Gitweb: http://git.kernel.org/tip/70a9d8184ccecf7a38848531fb4767a85134f464 Author: Ingo Molnar <mingo@xxxxxxxxxx> AuthorDate: Fri, 27 Jan 2017 09:58:02 +0100 Committer: Ingo Molnar <mingo@xxxxxxxxxx> CommitDate: Sat, 28 Jan 2017 09:31:12 +0100 x86/boot/e820: Introduce arch/x86/include/asm/e820/types.h First baby steps towards saner e820 headers: create an exact copy of arch/x86/include/uapi/asm/e820.h and use it from the asm/e820.h file. No other changes - this is done to decouple the code from UAPI headers, plus to make sure that subsequent modifications to the file can be more clearly seen. The plan is to keep the old UAPI header in place but the kernel won't use it anymore - and after some time we'll try to remove it. (User-space tools better have local copies of headers anyway, instead of relying on kernel headers.) This gives the kernel the freedom to reorganize the e820 code. Cc: Alex Thorlton <athorlton@xxxxxxx> Cc: Andy Lutomirski <luto@xxxxxxxxxx> Cc: Borislav Petkov <bp@xxxxxxxxx> Cc: Brian Gerst <brgerst@xxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: Denys Vlasenko <dvlasenk@xxxxxxxxxx> Cc: H. Peter Anvin <hpa@xxxxxxxxx> Cc: Huang, Ying <ying.huang@xxxxxxxxx> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> Cc: Juergen Gross <jgross@xxxxxxxx> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> Cc: Paul Jackson <pj@xxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Rafael J. Wysocki <rjw@xxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Wei Yang <richard.weiyang@xxxxxxxxx> Cc: Yinghai Lu <yinghai@xxxxxxxxxx> Cc: linux-kernel@xxxxxxxxxxxxxxx Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx> --- arch/x86/include/asm/e820.h | 4 ++-- arch/x86/include/{uapi/asm/e820.h => asm/e820/types.h} | 0 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h index 67313f3..55c1d76 100644 --- a/arch/x86/include/asm/e820.h +++ b/arch/x86/include/asm/e820.h @@ -5,12 +5,12 @@ * E820_X_MAX is the maximum size of the extended E820 table. The extended * table may contain up to 3 extra E820 entries per possible NUMA node, so we * make room for 3 * MAX_NUMNODES possible entries, beyond the standard 128. - * Also note that E820_X_MAX *must* be defined before we include uapi/asm/e820.h. + * Also note that E820_X_MAX *must* be defined before we include asm/e820/types.h. */ #include <linux/numa.h> #define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES) -#include <uapi/asm/e820.h> +#include <asm/e820/types.h> #ifndef __ASSEMBLY__ /* see comment in arch/x86/kernel/e820.c */ diff --git a/arch/x86/include/uapi/asm/e820.h b/arch/x86/include/asm/e820/types.h similarity index 100% copy from arch/x86/include/uapi/asm/e820.h copy to arch/x86/include/asm/e820/types.h -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |