aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-04-04 00:47:50 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-04-10 19:34:26 +0200
commit682ce1c392ac193d23a484cc5ccb4952322ae537 (patch)
treeeceffb9b54c097619d5cbfe8ec918479e3ad232e
parentca0cd5748ee9cec5b0ec059415fa418f2e389d98 (diff)
downloadbackports-682ce1c392ac193d23a484cc5ccb4952322ae537.tar.gz
headers: Add WWAN_PORT_UNKNOWN
WWAN_PORT_UNKNOWN was added to upstream Linux kernel in commit bf30396cdf81 ("net: wwan: Add unknown port type"). It is intentionally after the max enum value. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/wwan.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/wwan.h b/backport/backport-include/linux/wwan.h
index b3e4769f..ef123e5d 100644
--- a/backport/backport-include/linux/wwan.h
+++ b/backport/backport-include/linux/wwan.h
@@ -3,6 +3,11 @@
#include <linux/version.h>
#if LINUX_VERSION_IS_GEQ(5,13,0)
#include_next <linux/wwan.h>
+
+#if LINUX_VERSION_IS_LESS(5,14,0)
+#define WWAN_PORT_UNKNOWN (WWAN_PORT_MAX + 1)
+#endif /* <= 5.14 */
+
#else
/**