Andy Walls wrote: > On Thu, 2010-04-08 at 18:10 +0200, David Härdeman wrote: > >> With this patch: >> >> s64 int's are used to represent pulse/space durations in ns > > If performing divides on 64 bit numbers, please check to make sure your > code compiles, links, and loads on a 32-bit system. > > We've had problems in the past in where gcc will build the module to > reference __udivdi3 under 32-bit kernels; but that symbol is not in the > kernel. Good catch! > Search for 'do_div' in: > > linux/drivers/media/video/cx18/cx18-av-core.c > > for a simple example divide that works on both 64 and 32 bit machines. Unfortunately, not all gcc versions complain about the lack of the __udivi32 library. Some (like the one I run on my desktop), will add some inlined assembler code for it, instead of requiring some library to do the division. We'll likely only discover such bugs only after sending the code to linux-next (done later yesterday - but I suspect that it were pulled only today from my tree) and receiving a complain for the ones that run those robots that test hundreds of different CONFIG_foo options. So, I suspect that we'll have some of such complaints by tomorrow... -- Cheers, Mauro -- 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