[MPlayer-dev-eng] [PATCH] mga_vid and linux kernel 2.6

Shachar Raindel shacharr at gmail.com
Tue Jun 29 00:39:31 CEST 2004


Hi,
  MOD_XXX_USE_COUNT has been removed in the 2.6 series (see
http://lwn.net/Articles/22197/ ). I haven't looked in the patch, but
if it doesn't protect these lines with precompiler #if about the
kernel version.

   Cheers,
   Shachar

On Mon, 28 Jun 2004 21:48:36 +0200, Gergely Tamas <dice at mfa.kfki.hu> wrote:
> 
> Hi!
> 
>  > Changing makefile to use /lib/modules/<version>/build instantly fixes
>  > alot of things, but there are still two errors left:
>  >
>  > /extra/mplayer-build/drivers/mga_vid.c: In function `mga_vid_release':
>  > /extra/mplayer-build/drivers/mga_vid.c:1504: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
>  > /extra/mplayer-build/drivers/mga_vid.c:1504: error: (Each undeclared identifier is reported only once
>  > /extra/mplayer-build/drivers/mga_vid.c:1504: error: for each function it appears in.)
>  > /extra/mplayer-build/drivers/mga_vid.c: In function `mga_vid_open':
>  > /extra/mplayer-build/drivers/mga_vid.c:1549: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
> 
> This looks strange. Where did you try to compile the driver. Did you
> copy the files into mplayer tree (seems so) or standalone.
> 
> Try the following (this is how I use it):
> 1) extract mga_vid-2.6.tar.gz file into an empty directory
> 2) enter mga_vid-2.6 subdirectory
> 3) make
> --> now you should have an mga_vid.ko file.
> 
> What is you kernel version?
> 
> Gergely
> 
> 
> 
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>




More information about the MPlayer-dev-eng mailing list