<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 6:29 AM, Dilger, Andreas <span dir="ltr">&lt;<a href="mailto:andreas.dilger@intel.com" target="_blank">andreas.dilger@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015/11/11, 10:21, &quot;lustre-devel on behalf of Shivani Bhardwaj&quot;<br>
&lt;<a href="mailto:lustre-devel-bounces@lists.lustre.org">lustre-devel-bounces@lists.lustre.org</a> on behalf of <a href="mailto:shivanib134@gmail.com">shivanib134@gmail.com</a>&gt;<br>
wrote:<br>
<div><div class="h5"><br>
&gt;On Wed, Nov 11, 2015 at 4:24 PM, kbuild test robot &lt;<a href="mailto:lkp@intel.com">lkp@intel.com</a>&gt; wrote:<br>
&gt;&gt; Hi Shivani,<br>
&gt;&gt;<br>
&gt;&gt; [auto build test ERROR on staging/staging-testing]<br>
&gt;&gt; [also build test ERROR on v4.3 next-20151111]<br>
&gt;&gt;<br>
&gt;&gt; url:<br>
&gt;&gt;<a href="https://github.com/0day-ci/linux/commits/Shivani-Bhardwaj/staging-lustre-" rel="noreferrer" target="_blank">https://github.com/0day-ci/linux/commits/Shivani-Bhardwaj/staging-lustre-</a><br>
&gt;&gt;cl_lock-Remove-cl_lock_lockdep_init-wrapper/20151111-182452<br>
&gt;&gt; config: m68k-allyesconfig (attached as .config)<br>
&gt;&gt; reproduce:<br>
&gt;&gt;         wget<br>
&gt;&gt;<a href="https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin" rel="noreferrer" target="_blank">https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin</a><br>
&gt;&gt;/make.cross -O ~/bin/make.cross<br>
&gt;&gt;         chmod +x ~/bin/make.cross<br>
&gt;&gt;         # save the attached .config to linux build tree<br>
&gt;&gt;         make.cross ARCH=m68k<br>
&gt;&gt;<br>
&gt;&gt; All errors (new ones prefixed by &gt;&gt;):<br>
&gt;&gt;<br>
&gt;&gt;    In file included from include/linux/spinlock_types.h:18:0,<br>
&gt;&gt;                     from include/linux/spinlock.h:81,<br>
&gt;&gt;                     from include/linux/mmzone.h:7,<br>
&gt;&gt;                     from include/linux/gfp.h:5,<br>
&gt;&gt;                     from include/linux/slab.h:14,<br>
&gt;&gt;                     from<br>
&gt;&gt;drivers/staging/lustre/lustre/obdclass/../include/obd_support.h:40,<br>
&gt;&gt;                     from<br>
&gt;&gt;drivers/staging/lustre/lustre/obdclass/../include/obd_class.h:39,<br>
&gt;&gt;                     from<br>
&gt;&gt;drivers/staging/lustre/lustre/obdclass/cl_lock.c:43:<br>
&gt;&gt;    drivers/staging/lustre/lustre/obdclass/cl_lock.c: In function<br>
&gt;&gt;&#39;cl_lock_alloc&#39;:<br>
&gt;&gt;&gt;&gt; drivers/staging/lustre/lustre/obdclass/cl_lock.c:379:37: error:<br>
&gt;&gt;&gt;&gt;&#39;cl_lock_key&#39; undeclared (first use in this function)<br>
&gt;&gt;       lockdep_set_class_and_name(lock, &amp;cl_lock_key, &quot;EXT&quot;);<br>
&gt;&gt;                                         ^<br>
&gt;&gt;    include/linux/lockdep.h:401:15: note: in definition of macro<br>
&gt;&gt;&#39;lockdep_set_class_and_name&#39;<br>
&gt;&gt;       do { (void)(key); (void)(name); } while (0)<br>
&gt;&gt;                   ^<br>
&gt;&gt;    drivers/staging/lustre/lustre/obdclass/cl_lock.c:379:37: note: each<br>
&gt;&gt;undeclared identifier is reported only once for each function it appears<br>
&gt;&gt;in<br>
&gt;&gt;       lockdep_set_class_and_name(lock, &amp;cl_lock_key, &quot;EXT&quot;);<br>
&gt;&gt;                                         ^<br>
&gt;&gt;    include/linux/lockdep.h:401:15: note: in definition of macro<br>
&gt;&gt;&#39;lockdep_set_class_and_name&#39;<br>
&gt;&gt;       do { (void)(key); (void)(name); } while (0)<br>
&gt;&gt;                   ^<br>
&gt;&gt;    drivers/staging/lustre/lustre/obdclass/cl_lock.c: At top level:<br>
&gt;&gt;    drivers/staging/lustre/lustre/obdclass/cl_lock.c:166:13: warning:<br>
&gt;&gt;&#39;cl_lock_lockdep_init&#39; defined but not used [-Wunused-function]<br>
&gt;&gt;     static void cl_lock_lockdep_init(struct cl_lock *lock)<br>
&gt;&gt;                 ^<br>
&gt;&gt;<br>
&gt;&gt; vim +/cl_lock_key +379 drivers/staging/lustre/lustre/obdclass/cl_lock.c<br>
&gt;&gt;<br>
&gt;&gt;    373                  lockdep_set_class(&amp;lock-&gt;cll_guard,<br>
&gt;&gt;&amp;cl_lock_guard_class);<br>
&gt;&gt;    374                  init_waitqueue_head(&amp;lock-&gt;cll_wq);<br>
&gt;&gt;    375                  head = obj-&gt;co_lu.lo_header;<br>
&gt;&gt;    376                  CS_LOCKSTATE_INC(obj, CLS_NEW);<br>
&gt;&gt;    377                  CS_LOCK_INC(obj, total);<br>
&gt;&gt;    378                  CS_LOCK_INC(obj, create);<br>
&gt;&gt;  &gt; 379                  lockdep_set_class_and_name(lock, &amp;cl_lock_key,<br>
&gt;&gt;&quot;EXT&quot;);<br>
&gt;&gt;    380                  list_for_each_entry(obj, &amp;head-&gt;loh_layers,<br>
&gt;&gt;    381                                          co_lu.lo_linkage) {<br>
&gt;&gt;    382                          int err;<br>
&gt;&gt;<br>
&gt;&gt; ---<br>
&gt;&gt; 0-DAY kernel test infrastructure                Open Source Technology<br>
&gt;&gt;Center<br>
&gt;&gt; <a href="https://lists.01.org/pipermail/kbuild-all" rel="noreferrer" target="_blank">https://lists.01.org/pipermail/kbuild-all</a>                   Intel<br>
&gt;&gt;Corporation<br>
&gt;<br>
&gt;Hi all,<br>
&gt;<br>
&gt;I&#39;m not getting any of these errors at compilation. I&#39;ve checked<br>
&gt;thrice. Could you please tell what am I doing wrong so that I can<br>
&gt;avoid introducing errors in future patches?<br>
<br>
</div></div>You need to have CONFIG_LOCKDEP_SUPPORT=y in your kernel .config file.<br>
<br></blockquote><div> </div><div>Thanks Andreas<br></div><div>It is already set to &#39;y&#39;. I still do not get any errors. Can there be any other cause?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers, Andreas<br>
<span class="HOEnZb"><font color="#888888">--<br>
Andreas Dilger<br>
<br>
Lustre Principal Engineer<br>
Intel High Performance Data Division<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>