Hi Florian, [auto build test ERROR on nf/master] url: https://github.com/0day-ci/linux/commits/Florian-Westphal/netfilter-remove-old-pre-netns-era-hook-api/20170709-104810 base: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): security/selinux/hooks.c: In function 'selinux_nf_ip_init': security/selinux/hooks.c:6459:8: error: implicit declaration of function 'nf_register_hooks' [-Werror=implicit-function-declaration] err = nf_register_hooks(selinux_nf_ops, ARRAY_SIZE(selinux_nf_ops)); ^~~~~~~~~~~~~~~~~ security/selinux/hooks.c: In function 'selinux_nf_ip_exit': >> security/selinux/hooks.c:6473:2: error: implicit declaration of function 'nf_unregister_hooks' [-Werror=implicit-function-declaration] nf_unregister_hooks(selinux_nf_ops, ARRAY_SIZE(selinux_nf_ops)); ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- security/smack/smack_netfilter.c: In function 'smack_nf_ip_init': >> security/smack/smack_netfilter.c:86:8: error: implicit declaration of function 'nf_register_hooks' [-Werror=implicit-function-declaration] err = nf_register_hooks(smack_nf_ops, ARRAY_SIZE(smack_nf_ops)); ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/nf_unregister_hooks +6473 security/selinux/hooks.c ^1da177e Linus Torvalds 2005-04-16 6453 ^1da177e Linus Torvalds 2005-04-16 6454 if (!selinux_enabled) 25db6bea Jiri Pirko 2014-09-03 6455 return 0; ^1da177e Linus Torvalds 2005-04-16 6456 fadcdb45 Eric Paris 2007-02-22 6457 printk(KERN_DEBUG "SELinux: Registering netfilter hooks\n"); ^1da177e Linus Torvalds 2005-04-16 6458 25db6bea Jiri Pirko 2014-09-03 @6459 err = nf_register_hooks(selinux_nf_ops, ARRAY_SIZE(selinux_nf_ops)); ^1da177e Linus Torvalds 2005-04-16 6460 if (err) 25db6bea Jiri Pirko 2014-09-03 6461 panic("SELinux: nf_register_hooks: error %d\n", err); ^1da177e Linus Torvalds 2005-04-16 6462 25db6bea Jiri Pirko 2014-09-03 6463 return 0; ^1da177e Linus Torvalds 2005-04-16 6464 } ^1da177e Linus Torvalds 2005-04-16 6465 ^1da177e Linus Torvalds 2005-04-16 6466 __initcall(selinux_nf_ip_init); ^1da177e Linus Torvalds 2005-04-16 6467 ^1da177e Linus Torvalds 2005-04-16 6468 #ifdef CONFIG_SECURITY_SELINUX_DISABLE ^1da177e Linus Torvalds 2005-04-16 6469 static void selinux_nf_ip_exit(void) ^1da177e Linus Torvalds 2005-04-16 6470 { fadcdb45 Eric Paris 2007-02-22 6471 printk(KERN_DEBUG "SELinux: Unregistering netfilter hooks\n"); ^1da177e Linus Torvalds 2005-04-16 6472 25db6bea Jiri Pirko 2014-09-03 @6473 nf_unregister_hooks(selinux_nf_ops, ARRAY_SIZE(selinux_nf_ops)); ^1da177e Linus Torvalds 2005-04-16 6474 } ^1da177e Linus Torvalds 2005-04-16 6475 #endif ^1da177e Linus Torvalds 2005-04-16 6476 :::::: The code at line 6473 was first introduced by commit :::::: 25db6bea1ff5a78ef493eefdcbb9c1d27134e560 selinux: register nf hooks with single nf_register_hooks call :::::: TO: Jiri Pirko <jiri@xxxxxxxxxxx> :::::: CC: Paul Moore <pmoore@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip