[pcmoore-audit:working-testing 5/6] kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'

kbuild test robot fengguang.wu at intel.com
Fri Nov 11 21:32:21 UTC 2016


tree:   git://git.infradead.org/users/pcmoore/audit working-testing
head:   a49c8e50dda0d0232dfbed567608724c9666b6ab
commit: 20fb66989030c8f631d687ddaca75b9f7f2ee589 [5/6] Work in progress, no commit description yet.
config: mips-mtx1_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 20fb66989030c8f631d687ddaca75b9f7f2ee589
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/file.h:8:0,
                    from kernel/audit.c:46:
   kernel/audit.c: In function 'audit_log_start':
>> kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:518:25: note: in definition of macro '__ACCESS_ONCE'
      __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \
                            ^
>> kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
>> kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:518:52: note: in definition of macro '__ACCESS_ONCE'
      __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \
                                                       ^
>> kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
>> kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:519:19: note: in definition of macro '__ACCESS_ONCE'
     (volatile typeof(x) *)&(x); })
                      ^
>> kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~
>> kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
                                     ^
   include/linux/compiler.h:519:26: note: in definition of macro '__ACCESS_ONCE'
     (volatile typeof(x) *)&(x); })
                             ^
>> kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
         (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
          ^~~~~~~~~~~

vim +1457 kernel/audit.c

  1451		 * 2. current != auditd
  1452		 * 3. ACCESS_ONCE(audit_cmd_mutex.owner) != current
  1453		 * 4. ???
  1454		 */
  1455	
  1456		if ((!audit_pid && audit_pid != current->tgid) &&
> 1457		    (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
  1458			long sleep_time = audit_backlog_wait_time;
  1459	
  1460			while (audit_backlog_limit &&

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 21844 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-audit/attachments/20161112/ab7646d5/attachment.gz>


More information about the Linux-audit mailing list