debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)
From: Dave Hylands <hidden>
Date: 2011-06-28 17:41:08
From: Dave Hylands <hidden>
Date: 2011-06-28 17:41:08
Hi Prabhu, On Mon, Jun 27, 2011 at 11:25 PM, Prabhu nath [off-list ref] 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