From 5953c70e61897996e8b05fadea988b3289e133de Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Thu, 10 Jun 2010 13:48:08 -0700 Subject: vport: Move 'extern' declarations of vports to header. Since vport implementations have no header files they needed to be declared as extern before being used. They are currently declared in vport.c but this isn't safe because the compiler will silently accept it if the type is incorrect. This moves those declarations into vport.h, which is included by all implementations and will cause errors about conflicting types if there is a mismatch. --- datapath/vport-internal_dev.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'datapath/vport-internal_dev.c') diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index d8e57fef..eb7ddf96 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -40,8 +40,6 @@ struct internal_dev { struct pcpu_lstats extra_stats; }; -struct vport_ops internal_vport_ops; - static inline struct internal_dev *internal_dev_priv(struct net_device *netdev) { return netdev_priv(netdev); -- cgit v1.2.3