Hi Weilong,

[auto build test ERROR on v4.5-rc1]
[also build test ERROR on next-20160129]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:    
https://github.com/0day-ci/linux/commits/Weilong-Chen/Race-between-cat-proc-kallsyms-and-rmmod/20160130-182606
config: i386-randconfig-a0-201604 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from include/linux/notifier.h:13:0,
                    from include/linux/memory_hotplug.h:6,
                    from include/linux/mmzone.h:728,
                    from include/linux/gfp.h:5,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from kernel/kallsyms.c:15:
   kernel/kallsyms.c: In function 's_start':
>> kernel/kallsyms.c:519:14: error: 'module_mutex' undeclared (first use in 
>> this function)
     mutex_lock(&module_mutex);
                 ^
   include/linux/mutex.h:146:44: note: in definition of macro 'mutex_lock'
    #define mutex_lock(lock) mutex_lock_nested(lock, 0)
                                               ^
   kernel/kallsyms.c:519:14: note: each undeclared identifier is reported only 
once for each function it appears in
     mutex_lock(&module_mutex);
                 ^
   include/linux/mutex.h:146:44: note: in definition of macro 'mutex_lock'
    #define mutex_lock(lock) mutex_lock_nested(lock, 0)
                                               ^
   kernel/kallsyms.c: In function 's_stop':
   kernel/kallsyms.c:527:16: error: 'module_mutex' undeclared (first use in 
this function)
     mutex_unlock(&module_mutex);
                   ^

vim +/module_mutex +519 kernel/kallsyms.c

   513                  return NULL;
   514          return p;
   515  }
   516  
   517  static void *s_start(struct seq_file *m, loff_t *pos)
   518  {
 > 519          mutex_lock(&module_mutex);
   520          if (!update_iter(m->private, *pos))
   521                  return NULL;
   522          return m->private;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to