[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#304721: Sorce-Code error in kernel-source-2.6.8/drivers/char/drm/radeon_state.c



Package: kernel-source-2.6.8
Version: 2.6.8-15

Hello!

I think there is an error in kernel-source, i'm not able to compile it whit 
module DRM_RADEON built in:
CC drivers/char/drm/radeon_irq.o
drivers/char/drm/radeon_state.c: In Funktion »radeon_cp_cmdbuf«:
drivers/char/drm/radeon_state.c:2316: Warnung: implicit declaration of 
function `drm_alloc'
drivers/char/drm/radeon_state.c:2316: Warnung: Zuweisung erzeugt Zeiger von 
Ganzzahl ohne Typkonvertierung
drivers/char/drm/radeon_state.c:2416: Warnung: implicit declaration of 
function `drm_free' 

Whit DRM_RADEON as module, compiling works, but the same error is shown in the 
make-messages and XF86 is not able to load the module "radeon". I've tryed it 
manualy:
linux-server:/home/hannes# modprobe radeon
FATAL: Error inserting radeon 
(/lib/modules/2.6.8/kernel/drivers/char/drm/radeon.ko): Unknown symbol in 
module, or unknown parameter (see dmesg)

dmesg:
radeon: Unknown symbol drm_free
radeon: Unknown symbol drm_alloc

I've modyfied the kernel-souce and now it works:

diff radeon_state.c radeon_state-original.c
2316c2316
< kbuf = DRM(alloc)(cmdbuf.bufsz, DRM_MEM_DRIVER);
---
> kbuf = drm_alloc(cmdbuf.bufsz, DRM_MEM_DRIVER);
2416c2416
< DRM(free)(kbuf, orig_bufsz, DRM_MEM_DRIVER);
---
> drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER);
2424c2424
< DRM(free)(kbuf, orig_bufsz, DRM_MEM_DRIVER);
---
> drm_free(kbuf, orig_bufsz, DRM_MEM_DRIVER); 





Reply to: