[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120725074621.GA17467@localhost>
Date: Wed, 25 Jul 2012 15:46:21 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Dave Airlie <airlied@...hat.com>
Cc: dri-devel@...ts.freedesktop.org,
LKML <linux-kernel@...r.kernel.org>,
Ben Skeggs <bskeggs@...hat.com>,
"linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>
Subject: [PATCH] fix nouveau build error on !CONFIG_MXM_WMI
Fix build error on IA64:
ERROR: "mxm_wmi_supported" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists