[PATCH] broadband-modem-mbim: add missing guard for shared_qmi_init()

Ben Chan benchan at chromium.org
Wed Aug 22 00:38:15 UTC 2018


Fixes: 9e42a19742de55cf5c0ba4d68069c1845e9392e6
---
 src/mm-broadband-modem-mbim.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 1559ab5b..eb9e723b 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -4634,6 +4634,8 @@ iface_modem_signal_init (MMIfaceModemSignal *iface)
     iface->load_values_finish = modem_signal_load_values_finish;
 }
 
+#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
+
 static MMIfaceModemLocation *
 peek_parent_location_interface (MMSharedQmi *self)
 {
@@ -4647,6 +4649,8 @@ shared_qmi_init (MMSharedQmi *iface)
     iface->peek_parent_location_interface = peek_parent_location_interface;
 }
 
+#endif
+
 static void
 mm_broadband_modem_mbim_class_init (MMBroadbandModemMbimClass *klass)
 {
-- 
2.18.0.1017.ga543ac7ca45-goog



More information about the ModemManager-devel mailing list