Skip to contentSkip to conversation

fix nouveau build error on !CONFIG_MXM_WMI

PATCH New Fengguang Wu 1 participant 1 message Jul 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix nouveau build error on !CONFIG_MXM_WMI

Fix build error on IA64:

ERROR: "mxm_wmi_supported" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!

---
 include/linux/mxm-wmi.h |    8 ++++++++
 1 file changed, 8 insertions(+)
include/linux/mxm-wmi.h +8 -0
index 617a295..f6a6214 100644
@@ -28,6 +28,14 @@
 #define MXM_MXDS_ADAPTER_IGD 0x10
 int mxm_wmi_call_mxds(int adapter);
 int mxm_wmi_call_mxmx(int adapter);
+
+#if IS_ENABLED(CONFIG_MXM_WMI)
 bool mxm_wmi_supported(void);
+#else
+static inline bool mxm_wmi_supported(void)
+{
+	return false;
+}
+#endif
 
 #endif
Signature · 1 line
1.7.10