diff mbox

[06/14] header: kernel.h: include bug.h

Message ID 20180304225717.20890-7-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show

Commit Message

Hauke Mehrtens March 4, 2018, 10:57 p.m. UTC
This prevents some compile problems in rtlwifi.

Without this patch I am getting a compile error in
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/table.c with multiple
kernel versions because BUILD_BUG_ON_ZERO is implicitly defined.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/linux/kernel.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h
index 3ddeb13c..f5081663 100644
--- a/backport/backport-include/linux/kernel.h
+++ b/backport/backport-include/linux/kernel.h
@@ -1,6 +1,7 @@ 
 #ifndef __BACKPORT_KERNEL_H
 #define __BACKPORT_KERNEL_H
 #include_next <linux/kernel.h>
+#include <linux/bug.h>
 #include <linux/version.h>
 /*
  * some older kernels don't have this and thus don't