summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-18 04:02:50 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-18 04:02:50 +0200
commitd66729ce3b0aa3defd54f232ddb3190b58fff97d (patch)
tree6c8f0b995a1fa9a9268622ba27d3ce06e7f73d2c
parentc11712b71011f36b3e1a6c359f57f2262fb7fd0b (diff)
downloadmediapointer-dvb-s2-d66729ce3b0aa3defd54f232ddb3190b58fff97d.tar.gz
mediapointer-dvb-s2-d66729ce3b0aa3defd54f232ddb3190b58fff97d.tar.bz2
videobuf-dma-contig.c: fix 64-bit build for pre-2.6.24 kernels
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r--linux/drivers/media/video/videobuf-dma-contig.c2
-rw-r--r--v4l/compat.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/videobuf-dma-contig.c b/linux/drivers/media/video/videobuf-dma-contig.c
index 2475535cb..c71001da3 100644
--- a/linux/drivers/media/video/videobuf-dma-contig.c
+++ b/linux/drivers/media/video/videobuf-dma-contig.c
@@ -16,8 +16,10 @@
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/mm.h>
#include <linux/dma-mapping.h>
#include <media/videobuf-dma-contig.h>
+#include "compat.h"
struct videobuf_dma_contig_memory {
u32 magic;
diff --git a/v4l/compat.h b/v4l/compat.h
index af6727e1b..5e46c8271 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -114,6 +114,9 @@ do { \
p->length = sz; \
p->offset = off; \
} while (0)
+
+#define pr_err(fmt, arg...) \
+ printk(KERN_ERR fmt, ##arg)
#endif
#ifndef BIT_MASK