Skip to contentSkip to conversation

media/common/tuners: fix use of KERNEL_VERSION

PATCH In review Randy Dunlap 1 participant 2 messages Dec 1, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media/common/tuners: fix use of KERNEL_VERSION

From: Randy Dunlap <[email protected]>

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'

---
 drivers/media/video/pms.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/video/pms.c +1 -0
@@ -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>
#1 lore raw
Quoted 3 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

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

Incorrect $subject, sorry.

Quoted 17 lines

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

---
 drivers/media/video/pms.c |    1 +
 1 file changed, 1 insertion(+)
drivers/media/video/pms.c +1 -0
@@ -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>
Signature · 1 line
~Randy