compat.h required to build

2009-08-21 Thread Lou Otway
Hi, The following files: /linux/drivers/media/dvb/frontends/stb6100.c /linux/drivers/media/dvb/frontends/tda10021.c /linux/drivers/media/dvb/frontends/ves1820.c Fail to build with: error: implicit declaration of function 'DIV_ROUND_CLOSEST' and need the addition of: #include compat.h when

Re: compat.h required to build

2009-08-21 Thread Andy Walls
On Fri, 2009-08-21 at 17:02 +0100, Lou Otway wrote: Hi, The following files: /linux/drivers/media/dvb/frontends/stb6100.c /linux/drivers/media/dvb/frontends/tda10021.c /linux/drivers/media/dvb/frontends/ves1820.c Fail to build with: error: implicit declaration of function

Re: compat.h required to build

2009-08-21 Thread Devin Heitmueller
On Fri, Aug 21, 2009 at 12:34 PM, Andy Wallsawa...@radix.net wrote: DIV_ROUND_CLOSEST is probably available only in more recent kernels. When its use was added to those files, backward compatability was likely not tested.  Including compat.h is the proper thing to do. Regards, Andy I'm