* [PATCH] fix nouveau build error on !CONFIG_MXM_WMI
@ 2012-07-25 7:46 Fengguang Wu
0 siblings, 0 replies; only message in thread
From: Fengguang Wu @ 2012-07-25 7:46 UTC (permalink / raw)
To: Dave Airlie; +Cc: dri-devel, LKML, Ben Skeggs, linux-ia64@vger.kernel.org
Fix build error on IA64:
ERROR: "mxm_wmi_supported" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
include/linux/mxm-wmi.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/linux/mxm-wmi.h b/include/linux/mxm-wmi.h
index 617a295..f6a6214 100644
--- a/include/linux/mxm-wmi.h
+++ b/include/linux/mxm-wmi.h
@@ -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
--
1.7.10
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-25 7:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 7:46 [PATCH] fix nouveau build error on !CONFIG_MXM_WMI Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).