diff options
author | Enrico Mioso <mrkiko.rs@gmail.com> | 2013-11-04 03:50:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-05 15:21:25 -0500 |
commit | 2f69702c4db5f1c3149fd17fe30bdeb87cba9698 (patch) | |
tree | 7aa6c97576939adb42d7119497d3a134afe044ba /drivers/net/usb | |
parent | b579035ff766c9412e2b92abf5cab794bff102b6 (diff) |
net: cdc_ncm: Export cdc_ncm_{tx, rx}_fixup functions for re-use
Some drivers implementing NCM-like protocols, may re-use those functions, as is
the case in the huawei_cdc_ncm driver.
Export them via EXPORT_SYMBOL_GPL, in accordance with how other functions have
been exported.
Signed-off-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/cdc_ncm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 11c703337577..1763195bd599 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c | |||
@@ -830,7 +830,7 @@ static void cdc_ncm_txpath_bh(unsigned long param) | |||
830 | } | 830 | } |
831 | } | 831 | } |
832 | 832 | ||
833 | static struct sk_buff * | 833 | struct sk_buff * |
834 | cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) | 834 | cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) |
835 | { | 835 | { |
836 | struct sk_buff *skb_out; | 836 | struct sk_buff *skb_out; |
@@ -857,6 +857,7 @@ error: | |||
857 | 857 | ||
858 | return NULL; | 858 | return NULL; |
859 | } | 859 | } |
860 | EXPORT_SYMBOL_GPL(cdc_ncm_tx_fixup); | ||
860 | 861 | ||
861 | /* verify NTB header and return offset of first NDP, or negative error */ | 862 | /* verify NTB header and return offset of first NDP, or negative error */ |
862 | int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) | 863 | int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) |
@@ -943,7 +944,7 @@ error: | |||
943 | } | 944 | } |
944 | EXPORT_SYMBOL_GPL(cdc_ncm_rx_verify_ndp16); | 945 | EXPORT_SYMBOL_GPL(cdc_ncm_rx_verify_ndp16); |
945 | 946 | ||
946 | static int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) | 947 | int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) |
947 | { | 948 | { |
948 | struct sk_buff *skb; | 949 | struct sk_buff *skb; |
949 | struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0]; | 950 | struct cdc_ncm_ctx *ctx = (struct cdc_ncm_ctx *)dev->data[0]; |
@@ -1019,6 +1020,7 @@ err_ndp: | |||
1019 | error: | 1020 | error: |
1020 | return 0; | 1021 | return 0; |
1021 | } | 1022 | } |
1023 | EXPORT_SYMBOL_GPL(cdc_ncm_rx_fixup); | ||
1022 | 1024 | ||
1023 | static void | 1025 | static void |
1024 | cdc_ncm_speed_change(struct usbnet *dev, | 1026 | cdc_ncm_speed_change(struct usbnet *dev, |