2.4.0-test5, drm with CONFIG_MODVERSIONS

From: Tony Hoyle (tmh@magenta-logic.com)
Date: Sun Jul 30 2000 - 12:13:53 EST


drm is broken in test5 with CONFIG_MODVERSIONS set. The simple fix is
as follows:

--- agpsupport.c.old Sun Jul 30 17:10:07 2000
+++ agpsupport.c Sun Jul 30 17:51:21 2000
@@ -31,6 +31,12 @@
 #define __NO_VERSION__
 #include "drmP.h"
 
+/* External symbol mangling for agp */
+#ifdef CONFIG_MODVERSIONS
+#include <linux/modsetver.h>
+#include <linux/modules/agpgart_be.ver>
+#endif
+
 drm_agp_func_t drm_agp = { NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL };
 
 /* The C standard says that 'void *' is not guaranteed to hold a
function

Simply including <linux/modversions.h> doesn't work for some reason...
I'm not entirely sure why.

Tony

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:05 EST