lkml.org 
[lkml]   [2000]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Make agpsupport work with modversions

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 <jhartmann@precisioninsight.com>");
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.062 / U:20.480 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site