<div dir="ltr">thank you.<div>But the Makefile is so simple and Not use &quot;cc&quot;.</div><div>#################################</div><div><div>obj-m   := task_01.o</div><div><br></div><div>KDIR:=/lib/modules/`uname -r`/build</div>
<div>PWD:=$(shell pwd)</div><div><br></div><div>default:</div><div>    echo $KDIR</div><div>    $(MAKE) -C $(KDIR) M=$(PWD) modules</div></div><div>#################################</div><div><br></div><div>So, how to add &quot;<span style="color:rgb(0,0,0);white-space:pre-wrap">CFLAGS&quot;?</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-25 16:20 GMT+08:00 Bjørn Mork <span dir="ltr">&lt;<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Varka Bhadram &lt;<a href="mailto:varkabhadram@gmail.com">varkabhadram@gmail.com</a>&gt; writes:<br>
<br>
&gt; refer this :<a href="https://www.kernel.org/doc/local/pr_debug.txt" target="_blank">https://www.kernel.org/doc/local/pr_debug.txt</a><br>
<br>
That seems a little outdated since it doesn&#39;t mention the extremely<br>
useful dynamic debug feature.  So please read<br>
<a href="https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt" target="_blank">https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt</a><br>
as well.<br>
<br>
The ability to dynamically switch on and off debug messages per callsite<br>
is extremely useful.  And it also enables you to switch on some extra<br>
info you often want, like function names, without having to explictly<br>
put them into every format string.<br>
<br>
I recommend setting CONFIG_DYNAMIC_DEBUG and taking a look at<br>
/sys/kernel/debug/dynamic_debug/control if you ever do any kernel<br>
development.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Bjørn<br>
</font></span></blockquote></div><br></div>