History

switchdev: use gpl variant of symbol export

Jiri Pirko committed 11 years ago

Commit f4427bc1 parent 4fee6be1 file · +12 −12Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 1 file). Show all

Unified · Split

net/switchdev/switchdev.c+12−12
@@ -33,7 +33,7 @@ int netdev_switch_parent_id_get(struct net_device *dev, · 32 unmodified lines
3333 return -EOPNOTSUPP;
3434 return ops->ndo_switch_parent_id_get(dev, psid);
3535 }
36−EXPORT_SYMBOL(netdev_switch_parent_id_get);
36+EXPORT_SYMBOL_GPL(netdev_switch_parent_id_get);
3737
3838 /**
3939 * netdev_switch_port_stp_update - Notify switch device port of STP
@@ -52,7 +52,7 @@ int netdev_switch_port_stp_update(struct net_device *dev, u8 state) · 12 unmodified lines
5252 WARN_ON(!ops->ndo_switch_parent_id_get);
5353 return ops->ndo_switch_port_stp_update(dev, state);
5454 }
55−EXPORT_SYMBOL(netdev_switch_port_stp_update);
55+EXPORT_SYMBOL_GPL(netdev_switch_port_stp_update);
5656
5757 static DEFINE_MUTEX(netdev_switch_mutex);
5858 static RAW_NOTIFIER_HEAD(netdev_switch_notif_chain);
@@ -74,7 +74,7 @@ int register_netdev_switch_notifier(struct notifier_block *nb) · 15 unmodified lines
7474 mutex_unlock(&netdev_switch_mutex);
7575 return err;
7676 }
77−EXPORT_SYMBOL(register_netdev_switch_notifier);
77+EXPORT_SYMBOL_GPL(register_netdev_switch_notifier);
7878
7979 /**
8080 * unregister_netdev_switch_notifier - Unregister nofifier
@@ -92,7 +92,7 @@ int unregister_netdev_switch_notifier(struct notifier_block *nb) · 11 unmodified lines
9292 mutex_unlock(&netdev_switch_mutex);
9393 return err;
9494 }
95−EXPORT_SYMBOL(unregister_netdev_switch_notifier);
95+EXPORT_SYMBOL_GPL(unregister_netdev_switch_notifier);
9696
9797 /**
9898 * call_netdev_switch_notifiers - Call nofifiers
@@ -115,7 +115,7 @@ int call_netdev_switch_notifiers(unsigned long val, struct net_device *dev, · 16 unmodified lines
115115 mutex_unlock(&netdev_switch_mutex);
116116 return err;
117117 }
118−EXPORT_SYMBOL(call_netdev_switch_notifiers);
118+EXPORT_SYMBOL_GPL(call_netdev_switch_notifiers);
119119
120120 /**
121121 * netdev_switch_port_bridge_setlink - Notify switch device port of bridge
@@ -140,7 +140,7 @@ int netdev_switch_port_bridge_setlink(struct net_device *dev, · 18 unmodified lines
140140
141141 return ops->ndo_bridge_setlink(dev, nlh, flags);
142142 }
143−EXPORT_SYMBOL(netdev_switch_port_bridge_setlink);
143+EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_setlink);
144144
145145 /**
146146 * netdev_switch_port_bridge_dellink - Notify switch device port of bridge
@@ -165,7 +165,7 @@ int netdev_switch_port_bridge_dellink(struct net_device *dev, · 18 unmodified lines
165165
166166 return ops->ndo_bridge_dellink(dev, nlh, flags);
167167 }
168−EXPORT_SYMBOL(netdev_switch_port_bridge_dellink);
168+EXPORT_SYMBOL_GPL(netdev_switch_port_bridge_dellink);
169169
170170 /**
171171 * ndo_dflt_netdev_switch_port_bridge_setlink - default ndo bridge setlink
@@ -195,7 +195,7 @@ int ndo_dflt_netdev_switch_port_bridge_setlink(struct net_device *dev, · 23 unmodified lines
195195
196196 return ret;
197197 }
198−EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_setlink);
198+EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_setlink);
199199
200200 /**
201201 * ndo_dflt_netdev_switch_port_bridge_dellink - default ndo bridge dellink
@@ -225,7 +225,7 @@ int ndo_dflt_netdev_switch_port_bridge_dellink(struct net_device *dev, · 23 unmodified lines
225225
226226 return ret;
227227 }
228−EXPORT_SYMBOL(ndo_dflt_netdev_switch_port_bridge_dellink);
228+EXPORT_SYMBOL_GPL(ndo_dflt_netdev_switch_port_bridge_dellink);
229229
230230 static struct net_device *netdev_switch_get_lowest_dev(struct net_device *dev)
231231 {
@@ -331,7 +331,7 @@ int netdev_switch_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, · 99 unmodified lines
331331
332332 return err;
333333 }
334−EXPORT_SYMBOL(netdev_switch_fib_ipv4_add);
334+EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_add);
335335
336336 /**
337337 * netdev_switch_fib_ipv4_del - Delete IPv4 route entry from switch
@@ -369,7 +369,7 @@ int netdev_switch_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, · 31 unmodified lines
369369
370370 return err;
371371 }
372−EXPORT_SYMBOL(netdev_switch_fib_ipv4_del);
372+EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_del);
373373
374374 /**
375375 * netdev_switch_fib_ipv4_abort - Abort an IPv4 FIB operation
@@ -389,4 +389,4 @@ void netdev_switch_fib_ipv4_abort(struct fib_info *fi) · 13 unmodified lines
389389 fib_flush_external(fi->fib_net);
390390 fi->fib_net->ipv4.fib_offload_disabled = true;
391391 }
392−EXPORT_SYMBOL(netdev_switch_fib_ipv4_abort);
392+EXPORT_SYMBOL_GPL(netdev_switch_fib_ipv4_abort);