debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

Dave Hylands dhylands at gmail.com
Tue Jun 28 13:41:08 EDT 2011


Hi Prabhu,

On Mon, Jun 27, 2011 at 11:25 PM, Prabhu nath <gprabhunath at gmail.com> wrote:
> Hi Mulyadi/Spiro,
>
>            Can you please help me in partially enabling/disabling
> optimizations, because I was consistently hitting at the below problem when
> building the kernel after disabling the optimization
>
> ERROR: "intel_gmbus_is_forced_bit" [drivers/gpu/drm/i915/i915.ko] undefined!
> ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined!
> make[2]: *** [__modpost] Error 1
> make[1]: *** [modules] Error 2
> make: *** [sub-make] Error 2

This is happening because some code is trying to do 64-bit division
which isn't supported in the kernel. The code needs to be modified to
use do_div macro (which is available in either asm/div64.h).

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com



More information about the Kernelnewbies mailing list