Re: [PATCH] v4l/dvb: Add linux/version.h include as KERNEL_VERSION macro is used.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arjan van de Ven <arjan@...>
Cc: Andres Freund <andres@...>, <linux-kernel@...>, <apdim@...>
Date: Friday, May 2, 2008 - 6:15 am

On Thu, 1 May 2008, Arjan van de Ven wrote:


This is one of the rare cases where the usage of KERNEL_VERSION is valid. 
This is the code there:

#include <linux/version.h>      /* for KERNEL_VERSION MACRO     */
#define RADIO_VERSION KERNEL_VERSION(0,7,7)

This macro is required by V4L API to indicate the module version.

One possible solution would be to fork KERNEL_VERSION into something like 
V4L_VERSION, and replace it on drivers/media/video/* and 
drivers/media/radio/*.

Yet, I'm not sure if it would be nice to have two macros with the same 
code.

-- 
Cheers,
Mauro Carvalho Chehab
http://linuxtv.org
mchehab@infradead.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] v4l/dvb: Add linux/version.h include as KERNEL_V..., Mauro Carvalho Chehab, (Fri May 2, 6:15 am)