Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
915_drv build failure, fix
--- i915_drv.c 2011-08-28 09:51:45.000000000 -0700
+++ 915.fix 2011-08-28 09:51:39.000000000 -0700
@@ -223,7 +223,9 @@
static int
i915drm_modcmd(modcmd_t cmd, void *arg)
{
+#ifdef _MODULE
int error = 0;
+#endif
switch (cmd) {
case MODULE_CMD_INIT:
Without this, if the module is built w/o _MODULE defined, the definintion
of error throws a warning that the variable isn't used, and warnings
are treated as errors.
-bch
--
Brad Harder
Method Logic Digital Consulting
http://methodlogic.net/
http://twitter.com/bcharder
Home |
Main Index |
Thread Index |
Old Index