diff mbox series

[62/75] header: Add linux/minmax.h

Message ID 20240627234808.1253337-63-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 6.1.95 | expand

Commit Message

Hauke Mehrtens June 27, 2024, 11:47 p.m. UTC
linux/minmax.h was extracted from linux/kernel.h, handle this on older
kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/linux/minmax.h | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 backport/backport-include/linux/minmax.h
diff mbox series

Patch

diff --git a/backport/backport-include/linux/minmax.h b/backport/backport-include/linux/minmax.h
new file mode 100644
index 00000000..7830c9ce
--- /dev/null
+++ b/backport/backport-include/linux/minmax.h
@@ -0,0 +1,7 @@ 
+#include <linux/version.h>
+
+#if LINUX_VERSION_IS_GEQ(5,10,0)
+#include_next <linux/minmax.h>
+#else
+#include <linux/kernel.h>
+#endif