The patch below allows agpsupport to find the agp functions
when modversions is set and both AGP and DRM are compiled into the kernel,
and adds the dependency on CONFIG_MODULES explicitly.
It applies cleanly to both 2.4.0-test10pre3 and 2.2.18pre16, but only
tested on 2.4
thanks
john
--- drivers/char/drm/Config.in Tue Aug 8 17:27:33 2000
+++ drivers/char/drm/Config.in.new Tue Oct 17 11:38:44 2000
@@ -10,6 +10,6 @@
tristate ' 3dfx Banshee/Voodoo3+' CONFIG_DRM_TDFX
tristate ' 3dlabs GMX 2000' CONFIG_DRM_GAMMA
tristate ' ATI Rage 128' CONFIG_DRM_R128
- dep_tristate ' Intel I810' CONFIG_DRM_I810 $CONFIG_AGP
- dep_tristate ' Matrox g200/g400' CONFIG_DRM_MGA $CONFIG_AGP
+ dep_tristate ' Intel I810' CONFIG_DRM_I810 $CONFIG_AGP $CONFIG_MODULES
+ dep_tristate ' Matrox g200/g400' CONFIG_DRM_MGA $CONFIG_AGP $CONFIG_MODULES
fi
--- drivers/char/agp/agpgart_be.c Mon Aug 21 16:08:12 2000
+++ drivers/char/agp/agpgart_be.c.new Tue Oct 17 11:40:06 2000
@@ -48,14 +48,14 @@
MODULE_AUTHOR("Jeff Hartmann <[EMAIL PROTECTED]>");
MODULE_PARM(agp_try_unsupported, "1i");
-EXPORT_SYMBOL(agp_free_memory);
-EXPORT_SYMBOL(agp_allocate_memory);
-EXPORT_SYMBOL(agp_copy_info);
-EXPORT_SYMBOL(agp_bind_memory);
-EXPORT_SYMBOL(agp_unbind_memory);
-EXPORT_SYMBOL(agp_enable);
-EXPORT_SYMBOL(agp_backend_acquire);
-EXPORT_SYMBOL(agp_backend_release);
+EXPORT_SYMBOL_NOVERS(agp_free_memory);
+EXPORT_SYMBOL_NOVERS(agp_allocate_memory);
+EXPORT_SYMBOL_NOVERS(agp_copy_info);
+EXPORT_SYMBOL_NOVERS(agp_bind_memory);
+EXPORT_SYMBOL_NOVERS(agp_unbind_memory);
+EXPORT_SYMBOL_NOVERS(agp_enable);
+EXPORT_SYMBOL_NOVERS(agp_backend_acquire);
+EXPORT_SYMBOL_NOVERS(agp_backend_release);
static void flush_cache(void);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/