diff mbox series

[3/4] headers: Add WWAN_PORT_UNKNOWN

Message ID 20220406220321.3864576-3-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series [1/4] patches: Refresh on top of kernel 5.15.32 | expand

Commit Message

Hauke Mehrtens April 6, 2022, 10:03 p.m. UTC
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>
---
 backport/backport-include/linux/wwan.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

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
 
 /**