[ecryptfs:seccomp-logging 2/5] include/linux/audit.h:528:20: warning: '__audit_seccomp' declared 'static' but never defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs.git seccomp-logging
head:   cb693c3bd88cb403e9a72ef8d3e8647af90ddd1c
commit: 22f461512135136047a2bcaf5edb179fb3523bc0 [2/5] seccomp: Audit SECCOMP_RET_ERRNO actions with errno values
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
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 22f461512135136047a2bcaf5edb179fb3523bc0
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   In file included from kernel/fork.c:50:0:
   include/linux/audit.h:530:1: error: expected identifier or '(' before '{' token
>> include/linux/audit.h:528:20: warning: '__audit_seccomp' declared 'static' but never defined [-Wunused-function]
--
   In file included from kernel/seccomp.c:17:0:
   include/linux/audit.h:530:1: error: expected identifier or '(' before '{' token
   kernel/seccomp.c: In function '__seccomp_filter':
   kernel/seccomp.c:580:3: error: implicit declaration of function 'audit_seccomp_errno'
   kernel/seccomp.c: At top level:
>> include/linux/audit.h:528:20: warning: '__audit_seccomp' declared 'static' but never defined
   cc1: some warnings being treated as errors

vim +528 include/linux/audit.h

d6335d77 Andreas Gruenbacher 2015-12-24  522  static inline void audit_inode_child(struct inode *parent,
4fa6b5ec Jeff Layton         2012-10-10  523  				     const struct dentry *dentry,
4fa6b5ec Jeff Layton         2012-10-10  524  				     const unsigned char type)
9321d526 Kees Cook           2012-10-04  525  { }
9321d526 Kees Cook           2012-10-04  526  static inline void audit_core_dumps(long signr)
9321d526 Kees Cook           2012-10-04  527  { }
28bedd6a Tyler Hicks         2016-12-01 @528  static inline void __audit_seccomp(unsigned long syscall,
28bedd6a Tyler Hicks         2016-12-01  529  				   struct audit_seccomp_info *info);
28bedd6a Tyler Hicks         2016-12-01 @530  { }
28bedd6a Tyler Hicks         2016-12-01  531  static inline void audit_seccomp_signal(unsigned long syscall, long signr,
28bedd6a Tyler Hicks         2016-12-01  532  					int code)
9321d526 Kees Cook           2012-10-04  533  { }

:::::: The code at line 528 was first introduced by commit
:::::: 28bedd6ad6bf644620d0690d9025b801f2a706cc seccomp: Allow for auditing functionality specific to return actions

:::::: TO: Tyler Hicks <tyhicks@xxxxxxxxxxxxx>
:::::: CC: Tyler Hicks <tyhicks@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Crypto]     [Device Mapper Crypto]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux