[PATCH 04/47] backports: Add linux/math.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 backport/backport-include/linux/math.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 backport/backport-include/linux/math.h

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 */
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux