aboutsummaryrefslogtreecommitdiff
path: root/datapath/vport-internal_dev.c
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-06-10 13:48:08 -0700
committerJesse Gross <jesse@nicira.com>2010-06-10 14:29:30 -0700
commit5953c70e61897996e8b05fadea988b3289e133de (patch)
tree1031b3816798a28a4ec38449c5c12b177b37f33e /datapath/vport-internal_dev.c
parent61e89cd6d688b8ea2368a815dbe3516d731e77f0 (diff)
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.
Diffstat (limited to 'datapath/vport-internal_dev.c')
-rw-r--r--datapath/vport-internal_dev.c2
1 files changed, 0 insertions, 2 deletions
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);