diff options
author | Luca Coelho <luciano.coelho@intel.com> | 2018-02-18 15:24:55 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-02-23 12:34:07 +0100 |
commit | f937e61a9ab583fe6665875971c55447ffb3a378 (patch) | |
tree | bc36c3a938b32aa9dbd396af50fef2d63e75a444 /backport | |
parent | 2b5ecd3a3d876c3d40622caa7d2d6a21e17c6581 (diff) |
backport: add new build_bug.h file
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/build_bug.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backport/backport-include/linux/build_bug.h b/backport/backport-include/linux/build_bug.h new file mode 100644 index 00000000..13ee5d6a --- /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 */ |