Skip to content

Commit 49a21e5

Browse files
committed
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
2 parents df4c0b1 + d5a1bad commit 49a21e5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/x86/boot/boot.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include "cpuflags.h"
2929

3030
/* Useful macros */
31-
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
32-
3331
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
3432

3533
extern struct setup_header hdr;

arch/x86/boot/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/*
1111
* Main module for the real-mode kernel code
1212
*/
13+
#include <linux/build_bug.h>
1314

1415
#include "boot.h"
1516
#include "string.h"

0 commit comments

Comments
 (0)