[linux-dvb] [PATCH] Make v4l-dvb compile under kernels < 2.6.16
Mauro Carvalho Chehab
mchehab at infradead.org
Mon Apr 10 00:05:44 CEST 2006
Em Dom, 2006-04-09 às 00:17 -0700, Trent Piepho escreveu:
> The new drivers added to Hg don't all compile with kernels older than 2.6.16,
> mostly do to the mutex.h stuff. This patch will get them all to compile
> cleanly. Of course I don't have the hardware to test that all the drivers
> actually WORK with older kernels, but they will compile. Nothing should
> change for kernels >= 2.6.16.
> BTW, this patch would have been about half the work if compat.h would just:
> #define mutex semaphore
> for pre-mutex kernels. As long as no one tries to export a variable or
> function named mutex, and no one does, it's not going to mess anything up.
Your patch is OK. The rest of mutex conversion is handled by compat.h.
Only struct names are different and should be changed on every file.
I'm applying it at master tree and changing version for the newer files
to 2.6.14 (This is the oldest kernel I have here right now to test).
More information about the linux-dvb