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@xxxxxxxxxx> --- 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