lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 3 Mar 2022 19:00:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Florian Westphal <fw@...len.de>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Pablo Neira Ayuso <pablo@...filter.org>
Subject: [netfilter-nf-next:master 4/12]
 net/netfilter/nf_conntrack_netlink.c:3885:2: error: implicit declaration of
 function 'nf_conntrack_register_notifier'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git master
head:   25485ffb54ac073e82957218404e303469477c2f
commit: e999c34a878887e8413b6f728b929d668e191888 [4/12] netfilter: ctnetlink: make ecache event cb global again
config: riscv-randconfig-r042-20220303 (https://download.01.org/0day-ci/archive/20220303/202203031802.iTj8Fo1p-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git/commit/?id=e999c34a878887e8413b6f728b929d668e191888
        git remote add netfilter-nf-next git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git
        git fetch --no-tags netfilter-nf-next master
        git checkout e999c34a878887e8413b6f728b929d668e191888
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/netfilter/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> net/netfilter/nf_conntrack_netlink.c:3885:2: error: implicit declaration of function 'nf_conntrack_register_notifier' [-Werror,-Wimplicit-function-declaration]
           nf_conntrack_register_notifier(&ctnl_notifier);
           ^
   net/netfilter/nf_conntrack_netlink.c:3885:2: note: did you mean 'netlink_register_notifier'?
   include/linux/netlink.h:151:5: note: 'netlink_register_notifier' declared here
   int netlink_register_notifier(struct notifier_block *nb);
       ^
>> net/netfilter/nf_conntrack_netlink.c:3885:34: error: use of undeclared identifier 'ctnl_notifier'; did you mean 'rtnl_notify'?
           nf_conntrack_register_notifier(&ctnl_notifier);
                                           ^~~~~~~~~~~~~
                                           rtnl_notify
   include/linux/rtnetlink.h:14:13: note: 'rtnl_notify' declared here
   extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid,
               ^
   2 errors generated.


vim +/nf_conntrack_register_notifier +3885 net/netfilter/nf_conntrack_netlink.c

  3866	
  3867	static int __init ctnetlink_init(void)
  3868	{
  3869		int ret;
  3870	
  3871		BUILD_BUG_ON(sizeof(struct ctnetlink_list_dump_ctx) > sizeof_field(struct netlink_callback, ctx));
  3872	
  3873		ret = nfnetlink_subsys_register(&ctnl_subsys);
  3874		if (ret < 0) {
  3875			pr_err("ctnetlink_init: cannot register with nfnetlink.\n");
  3876			goto err_out;
  3877		}
  3878	
  3879		ret = nfnetlink_subsys_register(&ctnl_exp_subsys);
  3880		if (ret < 0) {
  3881			pr_err("ctnetlink_init: cannot register exp with nfnetlink.\n");
  3882			goto err_unreg_subsys;
  3883		}
  3884	
> 3885		nf_conntrack_register_notifier(&ctnl_notifier);
  3886	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ