[-next] media/common/tuners: fix use of KERNEL_VERSION

Message ID 4B14B8F1.6000805@oracle.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Randy Dunlap Dec. 1, 2009, 6:34 a.m. UTC
  From: Randy Dunlap <randy.dunlap@oracle.com>

pms.c uses KERNEL_VERSION so it needs to include version.h.

drivers/media/video/pms.c:682: error: implicit declaration of function 'KERNEL_VERSION'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/media/video/pms.c |    1 +
 1 file changed, 1 insertion(+)

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
  

Comments

Randy Dunlap Dec. 1, 2009, 6:40 a.m. UTC | #1
Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> pms.c uses KERNEL_VERSION so it needs to include version.h.

Incorrect $subject, sorry.

> drivers/media/video/pms.c:682: error: implicit declaration of function 'KERNEL_VERSION'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
>  drivers/media/video/pms.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-next-20091130.orig/drivers/media/video/pms.c
> +++ linux-next-20091130/drivers/media/video/pms.c
> @@ -29,6 +29,7 @@
>  #include <linux/mm.h>
>  #include <linux/ioport.h>
>  #include <linux/init.h>
> +#include <linux/version.h>
>  #include <asm/io.h>
>  #include <linux/videodev2.h>
>  #include <media/v4l2-common.h>
  

Patch

--- linux-next-20091130.orig/drivers/media/video/pms.c
+++ linux-next-20091130/drivers/media/video/pms.c
@@ -29,6 +29,7 @@ 
 #include <linux/mm.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
+#include <linux/version.h>
 #include <asm/io.h>
 #include <linux/videodev2.h>
 #include <media/v4l2-common.h>