[linux-next:master 7868/8410] net/netfilter/core.c:353:20: error: unused function 'nf_egress_hook'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7c832d2f9b959e3181370c8b0dacaf9efe13fc05
commit: 42df6e1d221dddc0f2acf2be37e68d553ad65f96 [7868/8410] netfilter: Introduce egress hook
config: x86_64-buildonly-randconfig-r003-20211015 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6069a6a5049497a32a50a49661c2f4169078bdba)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=42df6e1d221dddc0f2acf2be37e68d553ad65f96
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 42df6e1d221dddc0f2acf2be37e68d553ad65f96
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   net/netfilter/core.c:344:20: error: unused function 'nf_ingress_hook' [-Werror,-Wunused-function]
   static inline bool nf_ingress_hook(const struct nf_hook_ops *reg, int pf)
                      ^
>> net/netfilter/core.c:353:20: error: unused function 'nf_egress_hook' [-Werror,-Wunused-function]
   static inline bool nf_egress_hook(const struct nf_hook_ops *reg, int pf)
                      ^
   2 errors generated.


vim +/nf_egress_hook +353 net/netfilter/core.c

   343	
 > 344	static inline bool nf_ingress_hook(const struct nf_hook_ops *reg, int pf)
   345	{
   346		if ((pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_INGRESS) ||
   347		    (pf == NFPROTO_INET && reg->hooknum == NF_INET_INGRESS))
   348			return true;
   349	
   350		return false;
   351	}
   352	
 > 353	static inline bool nf_egress_hook(const struct nf_hook_ops *reg, int pf)
   354	{
   355		return pf == NFPROTO_NETDEV && reg->hooknum == NF_NETDEV_EGRESS;
   356	}
   357	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux