From: Gregory Greenman <gregory.greenman@xxxxxxxxx> In v6.5 gso declartions were moved into their own file. The commit is d457a0e329b0 ("net: move gso declarations and functions to their own files") Include the correct file depending on the kernel version. Signed-off-by: Gregory Greenman <gregory.greenman@xxxxxxxxx> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- backport/backport-include/net/gso.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 backport/backport-include/net/gso.h diff --git a/backport/backport-include/net/gso.h b/backport/backport-include/net/gso.h new file mode 100644 index 000000000000..f9ad9fc888b2 --- /dev/null +++ b/backport/backport-include/net/gso.h @@ -0,0 +1,9 @@ +#ifndef __BACKPORT_GSO_H +#define __BACKPORT_GSO_H + +#if LINUX_VERSION_IS_GEQ(6,5,0) +#include_next <net/gso.h> +#else +#include <linux/netdevice.h> +#endif /* < 6.5.0 */ +#endif /* __BACKPORT_GSO_H */ -- 2.45.1