header: kernel.h: include bug.h
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 4 Mar 2018 22:57:09 +0000 (23:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Mar 2018 08:19:32 +0000 (09:19 +0100)
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/kernel.h

index 3ddeb13c29a2fcfa3be8ecf508e1701a14c61122..f508166340f5c0ff8f8006317728a01df4f4213d 100644 (file)
@@ -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