From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Thu, 2 Jun 2011 07:49:40 -0700 Subject: Problems with disabling Optimization In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Prabhu, On Thu, Jun 2, 2011 at 3:28 AM, Prabhu nath wrote: > Dear All, > > ?????????????? Disabling O2 and Os on Kernel building, I am getting the > following error. Can you please help me in debugging this. > ?????? Saw some info on the net, but could not resolve it. > > ERROR: "intel_gmbus_is_forced_bit" [drivers/gpu/drm/i915/i915.ko] undefined! > ERROR: "__udivdi3" [drivers/gpu/drm/i915/i915.ko] undefined! This means that your code is trying to do some type of 64-bit arithmetic (probably a divide) which isn't directly supported in the kernel. There is a do_div macro/function from arch/arm/include/asm/div64.h, or arch/x86/include/asm/div64.h -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com