* [nf-next:for-net-next2 38/40] net/netfilter/utils.c:53: undefined reference to `nf_ip_reroute'
@ 2017-12-19 23:07 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-19 23:07 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: kbuild-all, netfilter-devel, coreteam
[-- Attachment #1: Type: text/plain, Size: 2767 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next2
head: 7c3f8641178fb63c1e970a23e3743e89fc92be81
commit: 56cd0e50caf4a1cb0fc743c53f3f7b3ad7a5f717 [38/40] netfilter: remove reroute indirection in struct nf_afinfo
config: x86_64-randconfig-i0-201751 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout 56cd0e50caf4a1cb0fc743c53f3f7b3ad7a5f717
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
net/netfilter/utils.o: In function `nf_checksum':
net/netfilter/utils.c:15: undefined reference to `nf_ip_checksum'
net/netfilter/utils.o: In function `nf_checksum_partial':
net/netfilter/utils.c:34: undefined reference to `nf_ip_checksum_partial'
net/netfilter/utils.o: In function `nf_reroute':
>> net/netfilter/utils.c:53: undefined reference to `nf_ip_reroute'
net/netfilter/utils.o: In function `nf_saveroute':
net/netfilter/utils.c:67: undefined reference to `nf_ip_saveroute'
vim +53 net/netfilter/utils.c
6
7 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook,
8 unsigned int dataoff, u_int8_t protocol,
9 unsigned short family)
10 {
11 __sum16 csum = 0;
12
13 switch (family) {
14 case AF_INET:
> 15 csum = nf_ip_checksum(skb, hook, dataoff, protocol);
16 break;
17 case AF_INET6:
18 csum = nf_ip6_checksum(skb, hook, dataoff, protocol);
19 break;
20 }
21
22 return csum;
23 }
24 EXPORT_SYMBOL_GPL(nf_checksum);
25
26 __sum16 nf_checksum_partial(struct sk_buff *skb, unsigned int hook,
27 unsigned int dataoff, unsigned int len,
28 u_int8_t protocol, unsigned short family)
29 {
30 __sum16 csum = 0;
31
32 switch (family) {
33 case AF_INET:
34 csum = nf_ip_checksum_partial(skb, hook, dataoff, len,
35 protocol);
36 break;
37 case AF_INET6:
38 csum = nf_ip6_checksum_partial(skb, hook, dataoff, len,
39 protocol);
40 break;
41 }
42
43 return csum;
44 }
45 EXPORT_SYMBOL_GPL(nf_checksum_partial);
46
47 int nf_reroute(struct sk_buff *skb, struct nf_queue_entry *entry)
48 {
49 int ret = 0;
50
51 switch (entry->state.pf) {
52 case AF_INET:
> 53 ret = nf_ip_reroute(skb, entry);
54 break;
55 case AF_INET6:
56 ret = nf_ip6_reroute(skb, entry);
57 break;
58 }
59
60 return ret;
61 }
62
---
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: 26808 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-19 23:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 23:07 [nf-next:for-net-next2 38/40] net/netfilter/utils.c:53: undefined reference to `nf_ip_reroute' 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;
as well as URLs for NNTP newsgroup(s).