From: kbuild test robot <fengguang.wu@intel.com>
To: Martin KaFai Lau <kafai@fb.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 1184/1189] include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared
Date: Sun, 20 Aug 2017 13:43:54 +0800 [thread overview]
Message-ID: <201708201349.qPOeS6kf%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 228498596c44041c710f5a633904205bc1cd9177
commit: 96eabe7a40aa17e613cf3db2c742ee8b1fc764d0 [1184/1189] bpf: Allow selecting numa node during map creation
config: i386-randconfig-s1-201734 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 96eabe7a40aa17e613cf3db2c742ee8b1fc764d0
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from net/bpf/test_run.c:7:0:
include/linux/bpf.h: In function 'bpf_map_attr_numa_node':
>> include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared (first use in this function)
attr->numa_node : NUMA_NO_NODE;
^~~~~~~~~~~~
include/linux/bpf.h:324:21: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from kernel/bpf/syscall.c:12:0:
include/linux/bpf.h: In function 'bpf_map_attr_numa_node':
>> include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared (first use in this function)
attr->numa_node : NUMA_NO_NODE;
^~~~~~~~~~~~
include/linux/bpf.h:324:21: note: each undeclared identifier is reported only once for each function it appears in
In file included from kernel/bpf/syscall.c:12:0:
>> include/linux/bpf.h:325:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +/NUMA_NO_NODE +324 include/linux/bpf.h
319
320 /* Return map's numa specified by userspace */
321 static inline int bpf_map_attr_numa_node(const union bpf_attr *attr)
322 {
323 return (attr->map_flags & BPF_F_NUMA_NODE) ?
> 324 attr->numa_node : NUMA_NO_NODE;
> 325 }
326
---
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: 23968 bytes --]
next reply other threads:[~2017-08-20 5:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-20 5:43 kbuild test robot [this message]
2017-08-20 6:27 ` [net-next:master 1184/1189] include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared Martin KaFai Lau
2017-08-20 6:33 ` David Miller
2017-08-20 6:44 ` Martin KaFai Lau
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=201708201349.qPOeS6kf%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kafai@fb.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