From 76e4054801350ebd4a44057379431a33d460ad0f Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Wed, 21 Apr 2021 11:01:34 +0000
Subject: [PATCH] mbim: Fix build with ell-0.39 by restoring unlikely macro
 from ell/util.h

Upstream-Status: Pending

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 drivers/mbimmodem/mbim-private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mbimmodem/mbim-private.h b/drivers/mbimmodem/mbim-private.h
index 51693eae..d917312c 100644
--- a/drivers/mbimmodem/mbim-private.h
+++ b/drivers/mbimmodem/mbim-private.h
@@ -30,6 +30,10 @@
   __result; })
 #endif
 
+/* used to be part of ell/util.h before 0.39:
+   https://git.kernel.org/pub/scm/libs/ell/ell.git/commit/?id=2a682421b06e41c45098217a686157f576847021 */
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
 enum mbim_control_message {
 	MBIM_OPEN_MSG = 0x1,
 	MBIM_CLOSE_MSG = 0x2,
