2
0
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:
Linus Torvalds 2019-09-16 18:27:37 -07:00
commit 49a21e52a6
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -10,6 +10,7 @@
/*
* Main module for the real-mode kernel code
*/
#include <linux/build_bug.h>
#include "boot.h"
#include "string.h"