aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2021-10-04 22:55:18 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-10-18 23:01:19 +0200
commit9b3d4096d8af43ac7ba222c37fe64d5c5940038c (patch)
tree9b41b8015b59a27e73bdca7813518790cc447a85
parent19dfc59b897d31804ed860a0590d7b3d4ed789c0 (diff)
downloadbackports-9b3d4096d8af43ac7ba222c37fe64d5c5940038c.tar.gz
backports: Add linux/math.h
This header file was added to the kernel, by extracting some functions from linux/kernel.h. Add an empty version which itself includes linux/kernel.h This way it will provide the same data also on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/math.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/backport/backport-include/linux/math.h b/backport/backport-include/linux/math.h
new file mode 100644
index 00000000..10225a9d
--- /dev/null
+++ b/backport/backport-include/linux/math.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __BACKPORTS_LINUX_MATH_H
+#define __BACKPORTS_LINUX_MATH_H
+#include <linux/version.h>
+
+#if LINUX_VERSION_IS_GEQ(5,11,0)
+#include_next <linux/math.h>
+#else
+#include <linux/kernel.h>
+#endif
+
+#endif /* __BACKPORTS_LINUX_MATH_H */