[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 3/4] headers: Add WWAN_PORT_UNKNOWN
From:       Hauke Mehrtens <hauke () hauke-m ! de>
Date:       2022-04-06 22:03:20
Message-ID: 20220406220321.3864576-3-hauke () hauke-m ! de
[Download RAW message or body]

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 --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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic