[PATCH 21/74] backports: add minmax.h
Johannes Berg <[email protected]> Fri, 24 May 2024 19:07:33 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <20240524190907.a03ccc68063b.Ieb3178a725c066c7153ba92596b1bb42f4162a38@changeid> |
From: Johannes Berg <[email protected]> This is needed for kernels <5.10. Signed-off-by: Johannes Berg <[email protected]> --- backport/backport-include/linux/minmax.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 backport/backport-include/linux/minmax.h 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 */ -- 2.45.1