Kernel since version 6.16 defines `SOCKWQ_ASYNC_NOSPACE` and
SOCKWQ_ASYNC_WAITDATA` in the socket_flags enum, which causes redefinition
errors when compiling the backport package[1].
Since kernel 6.12 also has them defined, the test and definition of these
constants have been completely abandoned. Thanks to this, there are
no compilation errors on either kernel 6.12 or 6.18.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.16&id=
0e81cfd971dc4833c699dcd8924e54a5021bc4e8
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21078
Signed-off-by: Robert Marko <robimarko@gmail.com>
--- /dev/null
+--- a/backport-include/linux/net.h
++++ b/backport-include/linux/net.h
+@@ -3,12 +3,4 @@
+ #include_next <linux/net.h>
+ #include <linux/static_key.h>
+
+-
+-#ifndef SOCKWQ_ASYNC_NOSPACE
+-#define SOCKWQ_ASYNC_NOSPACE SOCK_ASYNC_NOSPACE
+-#endif
+-#ifndef SOCKWQ_ASYNC_WAITDATA
+-#define SOCKWQ_ASYNC_WAITDATA SOCK_ASYNC_WAITDATA
+-#endif
+-
+ #endif /* __BACKPORT_LINUX_NET_H */