[PATCH v4 3/5] LSM: add new hook for kernfs node initialization

kbuild test robot lkp at intel.com
Tue Feb 5 09:51:58 UTC 2019

Hi Ondrej,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on v5.0-rc4 next-20190205]
[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/Ondrej-Mosnacek/Allow-initializing-the-kernfs-node-s-secctx-based-on-its-parent/20190205-171434
config: x86_64-randconfig-x013-201905 (attached as .config)
compiler: gcc-8 (Debian 8.2.0-14) 8.2.0
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from fs/file_table.c:15:
>> include/linux/security.h:796:1: error: expected identifier or '(' before '{' token
   In file included from fs/file_table.c:15:
   include/linux/security.h:792:19: warning: 'security_kernfs_init_security' declared 'static' but never defined [-Wunused-function]
    static inline int security_kernfs_init_security(

vim +796 include/linux/security.h

   792	static inline int security_kernfs_init_security(
   793			const struct qstr *qstr, const struct iattr *dir_iattr,
   794			struct simple_xattrs *dir_secattr, const struct iattr *iattr,
   795			struct simple_xattrs *secattr);
 > 796	{
   797		return 0;
   798	}

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

More information about the Linux-security-module-archive mailing list