The patch number 12484 was added via Mauro Carvalho Chehab <mche...@redhat.com> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel If anyone has any objections, please let us know by sending a message to: Linux Media Mailing List <linux-me...@vger.kernel.org> ------ From: Mauro Carvalho Chehab <mche...@redhat.com> compat.h: implement DIV_ROUND_CLOSEST Priority: normal Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com> --- v4l/compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff -r ff98058bfb86 -r ae8676c5abee v4l/compat.h --- a/v4l/compat.h Sat Aug 01 19:48:41 2009 +0000 +++ b/v4l/compat.h Thu Aug 20 12:31:58 2009 -0300 @@ -72,6 +72,15 @@ #define vmalloc_32_user(a) vmalloc_32(a) #endif +#ifndef DIV_ROUND_CLOSEST +#define DIV_ROUND_CLOSEST(x, divisor)( \ +{ \ + typeof(divisor) __divisor = divisor; \ + (((x) + ((__divisor) / 2)) / (__divisor)); \ +} \ +) +#endif + #ifdef NEED_BOOL_TYPE /* bool type and enum-based definition of true and false was added in 2.6.19 */ typedef int bool; --- Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/ae8676c5abeea4967f1000c72c3a2fdd78865e6b _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits