Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: John Fastabend <john.fastabend@gmail.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 1065/1071] net//core/filter.c:1881:8: error: implicit declaration of function '__sock_map_lookup_elem'
Date: Thu, 17 Aug 2017 04:04:19 +0800	[thread overview]
Message-ID: <201708170416.1xAg6Dkf%fengguang.wu@intel.com> (raw)

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

                 reply	other threads:[~2017-08-16 20:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201708170416.1xAg6Dkf%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=john.fastabend@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox