Re: marvel driver for kernel 2.4.20-8

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



On Tue, 29 Jul 2003, riza theresa batista wrote:

>In file included from mgagrab.c:43:
>/usr/src/linux-2.4.20-8/inlcude/linux/malloc.h:4:2 #error linux/malloc.h is
>deprecated,use linux/slab.h instead.
>In file included from mgagrab.c:53:
>mgacore.h: In function 'uvirt_to_kva':
>mgacore.h:501:warning: implicit declaration of function 'pte_offset'
>mgacore.h:501:warning: assignment makes pointer from integer without a cast
>make: *** [mgagrab.o] Error 1

Red Hat has modified their kernel to something unrecognizable. Do something
like

#ifndef HAVE_VMA
#if LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,3) || defined(pte_offset_map)
#define HAVE_VMA 1
#else
#define HAVE_VMA 0
#endif
#endif

#if HAVE_VMA
#define pte_offset(pmd,adr) pte_offset_map(pmd,adr)     /* Emulation for a kernel using the new rmap-vm */
#endif                                                  /* Fix by Michele Balistreri <brain87@xxxxxxx> */

You may also need to make more modifications, look qc-usb driver for
example http://www.ee.oulu.fi/~tuukkat/quickcam/quickcam.html,
especially qc-memory.c.




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux