Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123643 - x11-drivers/ati-drivers-8.22.5 (fglrx) 2.6.16 inter_module fix
Summary: x11-drivers/ati-drivers-8.22.5 (fglrx) 2.6.16 inter_module fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 12:01 UTC by shirk87
Modified: 2006-02-23 13:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shirk87 2006-02-21 12:01:35 UTC
This patch removes the inter_mode_xxx calls not present in 2.6.16-rc*
from fglrx module.

===============================================================================

diff -Naru a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c        2006-02-21 18:46:53.000000000 +0100
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c        2006-02-21 18:48:35.000000000 +0100
@@ -361,13 +361,15 @@
 } firegl_drm_stub_info_t;
 static firegl_drm_stub_info_t firegl_stub_info;
 
-#if LINUX_VERSION_CODE < 0x020400
+#if LINUX_VERSION_CODE > 0x02060F
 struct firegl_drm_stub_info_t *firegl_stub_pointer = NULL;
 #define inter_module_put(x)
 #define inter_module_unregister(x)
 #define inter_module_get_request(x,y)   firegl_stub_pointer
 #define inter_module_register(x,y,z)    do { firegl_stub_pointer = z; } while (0)
+#endif
 /* This is a kludge for backward compatibility that is only useful in DRM(stub_open) */
+#if LINUX_VERSION_CODE < 0x020400
 #define fops_put(fops)      MOD_DEC_USE_COUNT
 #define fops_get(fops)      (fops); MOD_INC_USE_COUNT
 #endif // LINUX_VERSION_CODE < 0x020400
Comment 1 Jory A. Pratt 2006-02-23 13:07:12 UTC
please search before opening new bugs. I will get the patch added in the next few minutes but this belongs on the tracker bug for kernel 2.6.16 ati-drivers. There also remains the issue about " Warning: "no_iommu" [/var/tmp/portage/ati-drivers-8.22.5/work/common/lib/modules/fglrx/build_mod/fglrx.ko] undefined!"