From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Tue, 28 Jun 2011 10:41:08 -0700 Subject: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32) In-Reply-To: References: <20110627184043.GC15361@trikaliotis.net> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Prabhu, On Mon, Jun 27, 2011 at 11:25 PM, Prabhu nath 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