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


Hi,

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

url: https://github.com/0day-ci/linux/commits/Vivek-Goyal/Overlayfs-SELinux-Support/20160709-002635
config: mips-gpr_defconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
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
# 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]
-EOPNOTSUPP;
^
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 }
767
768 static inline int security_inode_copy_up_xattr(const char *name)
769 {
> 770 -EOPNOTSUPP;
771 }
772
773 static inline int security_file_permission(struct file *file, int mask)

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

Attachment: .config.gz
Description: Binary data