[ecryptfs:seccomp-logging 2/5] kernel/seccomp.c:580:3: error: implicit declaration of function 'audit_seccomp_errno'

[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: i386-randconfig-x003-201702 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 22f461512135136047a2bcaf5edb179fb3523bc0
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   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' [-Werror=implicit-function-declaration]
      audit_seccomp_errno(this_syscall, data, action);
      ^~~~~~~~~~~~~~~~~~~
   In file included from kernel/seccomp.c:17:0:
   kernel/seccomp.c: At top level:
   include/linux/audit.h:528:20: warning: '__audit_seccomp' declared 'static' but never defined [-Wunused-function]
    static inline void __audit_seccomp(unsigned long syscall,
                       ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/audit_seccomp_errno +580 kernel/seccomp.c

   574		switch (action) {
   575		case SECCOMP_RET_ERRNO:
   576			/* Set low-order bits as an errno, capped at MAX_ERRNO. */
   577			if (data > MAX_ERRNO)
   578				data = MAX_ERRNO;
   579	
 > 580			audit_seccomp_errno(this_syscall, data, action);
   581			syscall_set_return_value(current, task_pt_regs(current),
   582						 -data, 0);
   583			return -1;

---
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