Hi Mulyadi/Spiro,<br><br>           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 <br>
             <br>ERROR: &quot;intel_gmbus_is_forced_bit&quot; [drivers/gpu/drm/i915/i915.ko] undefined!<br>
ERROR: &quot;__udivdi3&quot; [drivers/gpu/drm/i915/i915.ko] undefined!<br>make[2]: *** [__modpost] Error 1<br>make[1]: *** [modules] Error 2<br>make: *** [sub-make] Error 2<br><br>Can I enable optimization for this i915 driver, so that I can contine with my kernel building ?<br>
<br>Thanks,<br>Prabhu<br><br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 7:21 AM, Mulyadi Santosa <span dir="ltr">&lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Spiro<br>
<div class="im"><br>
On Tue, Jun 28, 2011 at 01:40, Spiro Trikaliotis<br>
&lt;<a href="mailto:ml-kernelnewbies@spiro.trikaliotis.net">ml-kernelnewbies@spiro.trikaliotis.net</a>&gt; wrote:<br>
&gt;<br>
&gt; On the other hand: With optimisations disabled, the kernel behaves<br>
&gt; differently than it would with optimisations. That&#39;s why many people<br>
&gt; prefer to keep them switched on, and only disable them partially if<br>
&gt; really, really needed.<br>
<br>
</div>I agree...even I still have mixed conclusion whether to go or no go<br>
with -O when dealing with -O and debugging. I guess one of the biggest<br>
offenders are: inlining, dead code (and symbols) elimination,<br>
substitution with specific machine specific opcode (not really sure,<br>
is -march has relationship with -O)...<br>
<div class="im"><br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br>