diff mbox series

[21/74] backports: add minmax.h

Message ID 20240524190907.a03ccc68063b.Ieb3178a725c066c7153ba92596b1bb42f4162a38@changeid (mailing list archive)
State New, archived
Headers show
Series backport updates from Intel | expand

Commit Message

Johannes Berg May 24, 2024, 5:07 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

This is needed for kernels <5.10.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/backport-include/linux/minmax.h | 8 ++++++++
 1 file changed, 8 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 000000000000..032bf3dfbbcc
--- /dev/null
+++ b/backport/backport-include/linux/minmax.h
@@ -0,0 +1,8 @@ 
+#ifndef __BACKPORT_MINMAX_H
+#define __BACKPORT_MINMAX_H
+#if LINUX_VERSION_IS_LESS(5,10,0)
+#include <linux/kernel.h>
+#else
+#include_next <linux/minmax.h>
+#endif
+#endif /* __BACKPORT_MINMAX_H */