Hi, If I'm not mistaken, there were several reports on Ubuntu forum regarding kernel vs GCC version compatibility. The error was same as yours: fail at __udivdi3 (and several floating point functions) linking stage. Maybe that's the real issue. Try to rebuilt/recompile your kernel with your current GCC (without your module). See whether the kernel can compile cleanly or fail during the linking stage. Regarding division, the floating point division needs the FPU (which may not be used during the kernel mode - The reason why previous author suggest you to avoid floating point operation) . Or soft-floating point library (assuming it's configured and compiled in the kernel source tree) Regards, -daniel On Wed, 2009-02-11 at 15:24 +0530, Sukanto Ghosh wrote: > On Fri, Feb 6, 2009 at 7:08 PM, Vivek Kumar Gupta <gkvivek@xxxxxxxxx> wrote: > > 1. Try upgrading your GCC compiler to 4.3.2 > > Ok > > > 2. To avoid Division in code: try using shift operation instead of div. > > > > E.g. "c = c >> x" instead of "c = c / x;" > > But that holds true only when the divisor is a power of 2. > i.e. if, x = 2^a then "c = c / x" is same as "c = c >> a". > > What if that is not the case ? > > > > Regards > Sukanto -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ