mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 boot code cleanup from Ingo Molnar: "Clean up the BUILD_BUG_ON() definition which can cause build warnings" * 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/boot: Use common BUILD_BUG_ON
This commit is contained in:
commit
49a21e52a6
@ -28,8 +28,6 @@
|
||||
#include "cpuflags.h"
|
||||
|
||||
/* Useful macros */
|
||||
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
||||
|
||||
extern struct setup_header hdr;
|
||||
|
@ -10,6 +10,7 @@
|
||||
/*
|
||||
* Main module for the real-mode kernel code
|
||||
*/
|
||||
#include <linux/build_bug.h>
|
||||
|
||||
#include "boot.h"
|
||||
#include "string.h"
|
||||
|
Loading…
Reference in New Issue
Block a user