[PATCH] v4l-dvb-compat: Fix build for older kernels using DIV_ROUND_CLOSEST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



DIV_ROUND_CLOSEST() is not available on older kernels.  Include compat.h
in a few files to fix building v4l-dvb from mercurial on older kernels.

Reported-by: Lou Otway <lotway@xxxxxxxxxxxxx>
Reported-by: Avo Aasma <Avo.Aasma@xxxxxxxx>
Signed-off-by: Andy Walls <awalls@xxxxxxxxx>


diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/stb6100.c
--- a/linux/drivers/media/dvb/frontends/stb6100.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/stb6100.c	Fri Aug 21 12:33:46 2009 -0400
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/string.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "stb6100.h"
 
diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/tda10021.c
--- a/linux/drivers/media/dvb/frontends/tda10021.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/tda10021.c	Fri Aug 21 12:33:46 2009 -0400
@@ -29,6 +29,7 @@
 #include <linux/string.h>
 #include <linux/slab.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "tda1002x.h"
 
diff -r d0ec20a376fe linux/drivers/media/dvb/frontends/ves1820.c
--- a/linux/drivers/media/dvb/frontends/ves1820.c	Thu Aug 20 01:30:58 2009 +0000
+++ b/linux/drivers/media/dvb/frontends/ves1820.c	Fri Aug 21 12:33:46 2009 -0400
@@ -27,6 +27,7 @@
 #include <linux/slab.h>
 #include <asm/div64.h>
 
+#include "compat.h"
 #include "dvb_frontend.h"
 #include "ves1820.h"
 


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

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux