From d66729ce3b0aa3defd54f232ddb3190b58fff97d Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 18 Jul 2008 04:02:50 +0200 Subject: videobuf-dma-contig.c: fix 64-bit build for pre-2.6.24 kernels From: Hans Verkuil Signed-off-by: Hans Verkuil --- linux/drivers/media/video/videobuf-dma-contig.c | 2 ++ v4l/compat.h | 3 +++ 2 files changed, 5 insertions(+) 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 #include +#include #include #include +#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 -- cgit v1.2.3