[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 06/10] backport: add new build_bug.h file
From:       Luca Coelho <luca () coelho ! fi>
Date:       2018-02-18 13:24:55
Message-ID: 20180218132459.11011-7-luca () coelho ! fi
[Download RAW message or body]

From: Luca Coelho <luciano.coelho@intel.com>

Some of the code in bug.h was moved into a new build_bug.h file.  Add
a backport that includes bug.h in the case of older kernels.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 backport/backport-include/linux/build_bug.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 backport/backport-include/linux/build_bug.h

diff --git a/backport/backport-include/linux/build_bug.h b/backport/backport-include/linux/build_bug.h
new file mode 100644
index 000000000000..13ee5d6a277a
--- /dev/null
+++ b/backport/backport-include/linux/build_bug.h
@@ -0,0 +1,10 @@
+#ifndef __BP_BUILD_BUG_H
+#define __BP_BUILD_BUG_H
+
+#if LINUX_VERSION_IS_GEQ(4,13,0)
+#include_next <linux/build_bug.h>
+#else /* LINUX_VERSION_IS_GEQ(4,13,0) */
+#include <linux/bug.h>
+#endif /* LINUX_VERSION_IS_GEQ(4,13,0) */
+
+#endif /* __BP_BUILD_BUG_H */
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic