linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH} Trivial - fix drm_agp symbol export
@ 2004-10-23  4:45 Jon Smirl
  2004-10-23  9:56 ` Christoph Hellwig
  0 siblings, 1 reply; 16+ messages in thread
From: Jon Smirl @ 2004-10-23  4:45 UTC (permalink / raw)
  To: lkml

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

Exports the symbol for drm agp entry points. This allows the new drm
linux-core module to get the symbol with symbol_get() instead of
inter_module_get(). After the new drm code arrives inter_module_xx
code in AGP can be deleted.

-- 
Jon Smirl
jonsmirl@gmail.com

[-- Attachment #2: agp_patch --]
[-- Type: application/octet-stream, Size: 1225 bytes --]

===== drivers/char/agp/backend.c 1.91 vs edited =====
--- 1.91/drivers/char/agp/backend.c	2004-06-01 04:00:05 -04:00
+++ edited/drivers/char/agp/backend.c	2004-10-23 00:39:00 -04:00
@@ -214,7 +214,7 @@
 				phys_to_virt(bridge->scratch_page_real));
 }
 
-static const drm_agp_t drm_agp = {
+const drm_agp_t drm_agp_entry = {
 	&agp_free_memory,
 	&agp_allocate_memory,
 	&agp_bind_memory,
@@ -224,6 +224,7 @@
 	&agp_backend_release,
 	&agp_copy_info
 };
+EXPORT_SYMBOL(drm_agp_entry);
 
 /* XXX Kludge alert: agpgart isn't ready for multiple bridges yet */
 struct agp_bridge_data *agp_alloc_bridge(void)
@@ -278,7 +279,7 @@
 	}
 
 	/* FIXME: What to do with this? */
-	inter_module_register("drm_agp", THIS_MODULE, &drm_agp);
+	inter_module_register("drm_agp", THIS_MODULE, &drm_agp_entry);
 
 	agp_count++;
 	return 0;
===== include/linux/agp_backend.h 1.37 vs edited =====
--- 1.37/include/linux/agp_backend.h	2003-05-21 05:15:24 -04:00
+++ edited/include/linux/agp_backend.h	2004-10-23 00:30:24 -04:00
@@ -112,7 +112,7 @@
 	int			(*copy_info)(struct agp_kern_info *);
 } drm_agp_t;
 
-extern const drm_agp_t *drm_agp_p;
+extern const drm_agp_t drm_agp_entry;
 
 #endif				/* __KERNEL__ */
 #endif				/* _AGP_BACKEND_H */

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-11-01  7:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-23  4:45 [PATCH} Trivial - fix drm_agp symbol export Jon Smirl
2004-10-23  9:56 ` Christoph Hellwig
2004-10-23 14:28   ` Dave Airlie
2004-10-23 14:33     ` Christoph Hellwig
2004-10-23 18:13     ` Jon Smirl
2004-10-23 14:35   ` Jon Smirl
2004-10-23 14:39     ` Christoph Hellwig
2004-10-23 14:44       ` Jon Smirl
2004-10-23 14:48         ` Dave Airlie
2004-10-23 14:54           ` Jon Smirl
2004-10-23 15:00             ` Dave Airlie
2004-10-23 14:46     ` Arjan van de Ven
2004-10-23 18:22   ` Jon Smirl
2004-11-01  6:01     ` Rusty Russell
2004-11-01  6:37       ` Jon Smirl
2004-11-01  7:41         ` Dave Airlie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).