[net-next:master 1369/1375] net/openvswitch/actions.c:705:16: error: implicit declaration of function 'nf_get_ipv6_ops'

From: kbuild test robot <hidden>
Date: 2015-08-27 19:13:23

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   21c721fd0b991b1871ea5dd517be1b5375c5f8f7
commit: 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536 [1369/1375] openvswitch: Add conntrack action
config: i386-randconfig-i0-201534 (attached as .config)
reproduce:
  git checkout 7f8a436eaa2c3ddd8e1ff2fbca267e6275085536
  # save the attached .config to linux build tree
  make ARCH=i386 

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

   net/openvswitch/actions.c: In function 'ovs_fragment':
quoted
net/openvswitch/actions.c:705:16: error: implicit declaration of function 'nf_get_ipv6_ops' [-Werror=implicit-function-declaration]
      const struct nf_ipv6_ops *v6ops = nf_get_ipv6_ops();
                   ^
quoted
net/openvswitch/actions.c:705:37: warning: initialization makes pointer from integer without a cast
      const struct nf_ipv6_ops *v6ops = nf_get_ipv6_ops();
                                        ^
quoted
net/openvswitch/actions.c:707:19: error: storage size of 'ovs_rt' isn't known
      struct rt6_info ovs_rt;
                      ^
quoted
net/openvswitch/actions.c:724:8: error: dereferencing pointer to incomplete type
      v6ops->fragment(skb->sk, skb, ovs_vport_output);
           ^
quoted
net/openvswitch/actions.c:707:19: warning: unused variable 'ovs_rt' [-Wunused-variable]
      struct rt6_info ovs_rt;
                      ^
   cc1: some warnings being treated as errors

vim +/nf_get_ipv6_ops +705 net/openvswitch/actions.c

   699			skb_dst_set_noref(skb, &ovs_dst);
   700			IPCB(skb)->frag_max_size = mru;
   701	
   702			ip_do_fragment(skb->sk, skb, ovs_vport_output);
   703			refdst_drop(orig_dst);
   704		} else if (ethertype == htons(ETH_P_IPV6)) {
 > 705			const struct nf_ipv6_ops *v6ops = nf_get_ipv6_ops();
   706			unsigned long orig_dst;
 > 707			struct rt6_info ovs_rt;
   708	
   709			if (!v6ops) {
   710				kfree_skb(skb);
   711				return;
   712			}
   713	
   714			prepare_frag(vport, skb);
   715			memset(&ovs_rt, 0, sizeof(ovs_rt));
   716			dst_init(&ovs_rt.dst, &ovs_dst_ops, NULL, 1,
   717				 DST_OBSOLETE_NONE, DST_NOCOUNT);
   718			ovs_rt.dst.dev = vport->dev;
   719	
   720			orig_dst = skb->_skb_refdst;
   721			skb_dst_set_noref(skb, &ovs_rt.dst);
   722			IP6CB(skb)->frag_max_size = mru;
   723	
 > 724			v6ops->fragment(skb->sk, skb, ovs_vport_output);
   725			refdst_drop(orig_dst);
   726		} else {
   727			WARN_ONCE(1, "Failed fragment ->%s: eth=%04x, MRU=%d, MTU=%d.",

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help