<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"><<a href="mailto:andreas.dilger@intel.com" target="_blank">andreas.dilger@intel.com</a>></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, "lustre-devel on behalf of Shivani Bhardwaj"<br>
<<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>><br>
wrote:<br>
<div><div class="h5"><br>
>On Wed, Nov 11, 2015 at 4:24 PM, kbuild test robot <<a href="mailto:lkp@intel.com">lkp@intel.com</a>> wrote:<br>
>> Hi Shivani,<br>
>><br>
>> [auto build test ERROR on staging/staging-testing]<br>
>> [also build test ERROR on v4.3 next-20151111]<br>
>><br>
>> url:<br>
>><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>
>>cl_lock-Remove-cl_lock_lockdep_init-wrapper/20151111-182452<br>
>> config: m68k-allyesconfig (attached as .config)<br>
>> reproduce:<br>
>>         wget<br>
>><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>
>>/make.cross -O ~/bin/make.cross<br>
>>         chmod +x ~/bin/make.cross<br>
>>         # save the attached .config to linux build tree<br>
>>         make.cross ARCH=m68k<br>
>><br>
>> All errors (new ones prefixed by >>):<br>
>><br>
>>    In file included from include/linux/spinlock_types.h:18:0,<br>
>>                     from include/linux/spinlock.h:81,<br>
>>                     from include/linux/mmzone.h:7,<br>
>>                     from include/linux/gfp.h:5,<br>
>>                     from include/linux/slab.h:14,<br>
>>                     from<br>
>>drivers/staging/lustre/lustre/obdclass/../include/obd_support.h:40,<br>
>>                     from<br>
>>drivers/staging/lustre/lustre/obdclass/../include/obd_class.h:39,<br>
>>                     from<br>
>>drivers/staging/lustre/lustre/obdclass/cl_lock.c:43:<br>
>>    drivers/staging/lustre/lustre/obdclass/cl_lock.c: In function<br>
>>'cl_lock_alloc':<br>
>>>> drivers/staging/lustre/lustre/obdclass/cl_lock.c:379:37: error:<br>
>>>>'cl_lock_key' undeclared (first use in this function)<br>
>>       lockdep_set_class_and_name(lock, &cl_lock_key, "EXT");<br>
>>                                         ^<br>
>>    include/linux/lockdep.h:401:15: note: in definition of macro<br>
>>'lockdep_set_class_and_name'<br>
>>       do { (void)(key); (void)(name); } while (0)<br>
>>                   ^<br>
>>    drivers/staging/lustre/lustre/obdclass/cl_lock.c:379:37: note: each<br>
>>undeclared identifier is reported only once for each function it appears<br>
>>in<br>
>>       lockdep_set_class_and_name(lock, &cl_lock_key, "EXT");<br>
>>                                         ^<br>
>>    include/linux/lockdep.h:401:15: note: in definition of macro<br>
>>'lockdep_set_class_and_name'<br>
>>       do { (void)(key); (void)(name); } while (0)<br>
>>                   ^<br>
>>    drivers/staging/lustre/lustre/obdclass/cl_lock.c: At top level:<br>
>>    drivers/staging/lustre/lustre/obdclass/cl_lock.c:166:13: warning:<br>
>>'cl_lock_lockdep_init' defined but not used [-Wunused-function]<br>
>>     static void cl_lock_lockdep_init(struct cl_lock *lock)<br>
>>                 ^<br>
>><br>
>> vim +/cl_lock_key +379 drivers/staging/lustre/lustre/obdclass/cl_lock.c<br>
>><br>
>>    373                  lockdep_set_class(&lock->cll_guard,<br>
>>&cl_lock_guard_class);<br>
>>    374                  init_waitqueue_head(&lock->cll_wq);<br>
>>    375                  head = obj->co_lu.lo_header;<br>
>>    376                  CS_LOCKSTATE_INC(obj, CLS_NEW);<br>
>>    377                  CS_LOCK_INC(obj, total);<br>
>>    378                  CS_LOCK_INC(obj, create);<br>
>>  > 379                  lockdep_set_class_and_name(lock, &cl_lock_key,<br>
>>"EXT");<br>
>>    380                  list_for_each_entry(obj, &head->loh_layers,<br>
>>    381                                          co_lu.lo_linkage) {<br>
>>    382                          int err;<br>
>><br>
>> ---<br>
>> 0-DAY kernel test infrastructure                Open Source Technology<br>
>>Center<br>
>> <a href="https://lists.01.org/pipermail/kbuild-all" rel="noreferrer" target="_blank">https://lists.01.org/pipermail/kbuild-all</a>                   Intel<br>
>>Corporation<br>
><br>
>Hi all,<br>
><br>
>I'm not getting any of these errors at compilation. I've checked<br>
>thrice. Could you please tell what am I doing wrong so that I can<br>
>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 'y'. 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>