[PATCH 3/4] headers: Add WWAN_PORT_UNKNOWN
Hauke Mehrtens <[email protected]> Thu, 7 Apr 2022 00:03:20 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
---
backport/backport-include/linux/wwan.h | 5 +++++
1 file changed, 5 insertions(+)
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
/**
--
2.30.2
--
To unsubscribe from this list: send the line "unsubscribe backports" in