From: Johannes Berg <johannes.berg@xxxxxxxxx> This is needed for kernels <5.10. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- 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