Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

From: kbuild test robot
Date: Fri Jul 08 2016 - 13:42:51 EST


[auto build test ERROR on next-20160708]
[also build test ERROR on v4.7-rc6]
[cannot apply to pcmoore-selinux/next security/next v4.7-rc6 v4.7-rc5 v4.7-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

config: mips-gpr_defconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mips

All errors (new ones prefixed by >>):

In file included from arch/mips/kernel/ptrace.c:27:0:
include/linux/security.h: In function 'security_inode_copy_up_xattr':
>> include/linux/security.h:770:2: error: statement with no effect [-Werror=unused-value]
include/linux/security.h:771:1: error: no return statement in function returning non-void [-Werror=return-type]
cc1: all warnings being treated as errors

vim +770 include/linux/security.h

764 {
765 return 0;
766 }
768 static inline int security_inode_copy_up_xattr(const char *name)
769 {
771 }
773 static inline int security_file_permission(struct file *file, int mask)

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: Binary data