openvswitch: remove unnecessary EXPORT_SYMBOLs
authorJiri Benc <jbenc@redhat.com>
Wed, 19 Oct 2016 09:26:37 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2016 19:11:55 +0000 (15:11 -0400)
Some symbols exported to other modules are really used only by
openvswitch.ko. Remove the exports.

Tested by loading all 4 openvswitch modules, nothing breaks.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c
net/openvswitch/vport-netdev.c
net/openvswitch/vport.c

index 4d67ea856067829ab3d7d6395fc52f2ae89d3f79..194435aa1165442fb4943ea935ff52ca83dbf1ea 100644 (file)
@@ -59,7 +59,6 @@
 #include "vport-netdev.h"
 
 int ovs_net_id __read_mostly;
-EXPORT_SYMBOL_GPL(ovs_net_id);
 
 static struct genl_family dp_packet_genl_family;
 static struct genl_family dp_flow_genl_family;
@@ -131,7 +130,6 @@ int lockdep_ovsl_is_held(void)
        else
                return 1;
 }
-EXPORT_SYMBOL_GPL(lockdep_ovsl_is_held);
 #endif
 
 static struct vport *new_vport(const struct vport_parms *);
index 4e3972344aa6442986f457c12ed6e23fc92f844d..e825753de1e0065944a1e555872efe2198e4f3b0 100644 (file)
@@ -162,7 +162,6 @@ void ovs_netdev_detach_dev(struct vport *vport)
                                netdev_master_upper_dev_get(vport->dev));
        dev_set_promiscuity(vport->dev, -1);
 }
-EXPORT_SYMBOL_GPL(ovs_netdev_detach_dev);
 
 static void netdev_destroy(struct vport *vport)
 {
index 9d0a87845843039d1a1a4d18f297d84843d3a26e..9bb85b35a1fbff2f6558417afbb9b2203dabb212 100644 (file)
@@ -463,7 +463,6 @@ int ovs_vport_receive(struct vport *vport, struct sk_buff *skb,
        ovs_dp_process_packet(skb, &key);
        return 0;
 }
-EXPORT_SYMBOL_GPL(ovs_vport_receive);
 
 static unsigned int packet_length(const struct sk_buff *skb)
 {