Netdev List
 help / color / mirror / Atom feed
* [net-next:master 1065/1071] net//core/filter.c:1881:8: error: implicit declaration of function '__sock_map_lookup_elem'
@ 2017-08-16 20:04 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-08-16 20:04 UTC (permalink / raw)
  To: John Fastabend; +Cc: kbuild-all, netdev

[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   cf9d01405925e3f8144c99d7bf7b184449794066
commit: 174a79ff9515f400b9a6115643dafd62a635b7e6 [1065/1071] bpf: sockmap with sk redirect support
config: cris-etrax-100lx_v2_defconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 174a79ff9515f400b9a6115643dafd62a635b7e6
        # save the attached .config to linux build tree
        make.cross ARCH=cris 

All error/warnings (new ones prefixed by >>):

   net//core/filter.c: In function 'do_sk_redirect_map':
>> net//core/filter.c:1881:8: error: implicit declaration of function '__sock_map_lookup_elem' [-Werror=implicit-function-declaration]
      sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
           ^~~~~~~~~~~~~~~~~~~~~~
>> net//core/filter.c:1881:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
         ^
   cc1: some warnings being treated as errors

vim +/__sock_map_lookup_elem +1881 net//core/filter.c

  1874	
  1875	struct sock *do_sk_redirect_map(void)
  1876	{
  1877		struct redirect_info *ri = this_cpu_ptr(&redirect_info);
  1878		struct sock *sk = NULL;
  1879	
  1880		if (ri->map) {
> 1881			sk = __sock_map_lookup_elem(ri->map, ri->ifindex);
  1882	
  1883			ri->ifindex = 0;
  1884			ri->map = NULL;
  1885			/* we do not clear flags for future lookup */
  1886		}
  1887	
  1888		return sk;
  1889	}
  1890	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 8731 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-16 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16 20:04 [net-next:master 1065/1071] net//core/filter.c:1881:8: error: implicit declaration of function '__sock_map_lookup_elem' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox