[linux-next:master 845/1131] net/core/dev.c:6015:33: error: implicit declaration of function 'skb_ext_find'

[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:   db503865b9ba6284edfee3825846a464cc4f4c61
commit: 8550ff8d8c75416e984d9c4b082845e57e560984 [845/1131] skbuff: Release nfct refcount on napi stolen or re-used skbs
config: x86_64-buildonly-randconfig-r002-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8550ff8d8c75416e984d9c4b082845e57e560984
        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 8550ff8d8c75416e984d9c4b082845e57e560984
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

Note: the linux-next/master HEAD db503865b9ba6284edfee3825846a464cc4f4c61 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> net/core/dev.c:6015:33: error: implicit declaration of function 'skb_ext_find' [-Werror,-Wimplicit-function-declaration]
                           struct tc_skb_ext *skb_ext = skb_ext_find(skb, TC_SKB_EXT);
                                                        ^
>> net/core/dev.c:6015:51: error: use of undeclared identifier 'TC_SKB_EXT'
                           struct tc_skb_ext *skb_ext = skb_ext_find(skb, TC_SKB_EXT);
                                                                          ^
   net/core/dev.c:6016:47: error: use of undeclared identifier 'TC_SKB_EXT'
                           struct tc_skb_ext *p_ext = skb_ext_find(p, TC_SKB_EXT);
                                                                      ^
>> net/core/dev.c:6020:19: error: incomplete definition of type 'struct tc_skb_ext'
                                   diffs |= p_ext->chain ^ skb_ext->chain;
                                            ~~~~~^
   net/core/dev.c:6015:11: note: forward declaration of 'struct tc_skb_ext'
                           struct tc_skb_ext *skb_ext = skb_ext_find(skb, TC_SKB_EXT);
                                  ^
   net/core/dev.c:6020:36: error: incomplete definition of type 'struct tc_skb_ext'
                                   diffs |= p_ext->chain ^ skb_ext->chain;
                                                           ~~~~~~~^
   net/core/dev.c:6015:11: note: forward declaration of 'struct tc_skb_ext'
                           struct tc_skb_ext *skb_ext = skb_ext_find(skb, TC_SKB_EXT);
                                  ^
   5 errors generated.


vim +/skb_ext_find +6015 net/core/dev.c

  5980	
  5981	static void gro_list_prepare(const struct list_head *head,
  5982				     const struct sk_buff *skb)
  5983	{
  5984		unsigned int maclen = skb->dev->hard_header_len;
  5985		u32 hash = skb_get_hash_raw(skb);
  5986		struct sk_buff *p;
  5987	
  5988		list_for_each_entry(p, head, list) {
  5989			unsigned long diffs;
  5990	
  5991			NAPI_GRO_CB(p)->flush = 0;
  5992	
  5993			if (hash != skb_get_hash_raw(p)) {
  5994				NAPI_GRO_CB(p)->same_flow = 0;
  5995				continue;
  5996			}
  5997	
  5998			diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev;
  5999			diffs |= skb_vlan_tag_present(p) ^ skb_vlan_tag_present(skb);
  6000			if (skb_vlan_tag_present(p))
  6001				diffs |= skb_vlan_tag_get(p) ^ skb_vlan_tag_get(skb);
  6002			diffs |= skb_metadata_dst_cmp(p, skb);
  6003			diffs |= skb_metadata_differs(p, skb);
  6004			if (maclen == ETH_HLEN)
  6005				diffs |= compare_ether_header(skb_mac_header(p),
  6006							      skb_mac_header(skb));
  6007			else if (!diffs)
  6008				diffs = memcmp(skb_mac_header(p),
  6009					       skb_mac_header(skb),
  6010					       maclen);
  6011	
  6012			diffs |= skb_get_nfct(p) ^ skb_get_nfct(skb);
  6013	
  6014			if (!diffs) {
> 6015				struct tc_skb_ext *skb_ext = skb_ext_find(skb, TC_SKB_EXT);
  6016				struct tc_skb_ext *p_ext = skb_ext_find(p, TC_SKB_EXT);
  6017	
  6018				diffs |= (!!p_ext) ^ (!!skb_ext);
  6019				if (!diffs && unlikely(skb_ext))
> 6020					diffs |= p_ext->chain ^ skb_ext->chain;
  6021			}
  6022	
  6023			NAPI_GRO_CB(p)->same_flow = !diffs;
  6024		}
  6025	}
  6026	

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