<div dir="ltr">You may want to try following. That will expand all the macros in kernel/cpu.c file. <br><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" id="docs-internal-guid-ecdec9dc-4101-5d1b-3337-53946601e160"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"># make kernel/cpu.i <br></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">You may try with your required files.</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Vishal<br></span></p><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 9:17 PM, Manavendra Nath Manav <span dir="ltr">&lt;<a href="mailto:mnm.kernel@gmail.com" target="_blank">mnm.kernel@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"><span class=""><p dir="ltr"><br>
</p>
<p dir="ltr"></p>
<p dir="ltr">On Tue 6 Oct, 2015 18:34 慕冬亮 &lt;<a href="mailto:mudongliangabcd@gmail.com" target="_blank">mudongliangabcd@gmail.com</a>&gt; wrote:</p>
<blockquote><p dir="ltr">Recently I was learning doubly linked list in kernel, there are many<br>
macro in linux/fs.h, like list_add, list_del,list_for_each,list_entry,<br>
container_of.</p>
<p dir="ltr">I know we can use &quot;gcc -E&quot; to expand the macro, but how do we expand<br>
the macro in kernel source code / kernel module?</p>
<p dir="ltr">    - mudongliang</p>
<p dir="ltr">____________________________________________</p>
</blockquote>
<p dir="ltr"><br>
 </p>
<blockquote><p dir="ltr"><br>
</p>
</blockquote>
</span><p dir="ltr">A quick look at cscope and ctags will solve your problem.</p><span class="HOEnZb"><font color="#888888">
<p dir="ltr">-- manav</p>
<p dir="ltr"><br>
</p>
</font></span><br>_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>