diff options
| author | Bjørn Mork <bjorn@mork.no> | 2013-11-01 06:16:39 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-11-02 02:02:01 -0400 |
| commit | f6701d5f73c5c2f4ca37634514631fb056291f89 (patch) | |
| tree | 0297a0d1b2184204e7f1a2dd5d0ab5b43d4d32d6 /include/linux/usb | |
| parent | 20572226fc789f9f515331d911a3bd3a0d24c67a (diff) | |
net: cdc_ncm: add include protection to cdc_ncm.h
This makes it a lot easier to test modified versions
Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/cdc_ncm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/cdc_ncm.h b/include/linux/usb/cdc_ncm.h index cc25b70af33c..89f0bbc2cf83 100644 --- a/include/linux/usb/cdc_ncm.h +++ b/include/linux/usb/cdc_ncm.h | |||
| @@ -36,6 +36,9 @@ | |||
| 36 | * SUCH DAMAGE. | 36 | * SUCH DAMAGE. |
| 37 | */ | 37 | */ |
| 38 | 38 | ||
| 39 | #ifndef __LINUX_USB_CDC_NCM_H | ||
| 40 | #define __LINUX_USB_CDC_NCM_H | ||
| 41 | |||
| 39 | #define CDC_NCM_COMM_ALTSETTING_NCM 0 | 42 | #define CDC_NCM_COMM_ALTSETTING_NCM 0 |
| 40 | #define CDC_NCM_COMM_ALTSETTING_MBIM 1 | 43 | #define CDC_NCM_COMM_ALTSETTING_MBIM 1 |
| 41 | 44 | ||
| @@ -133,3 +136,5 @@ extern void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf); | |||
| 133 | extern struct sk_buff *cdc_ncm_fill_tx_frame(struct cdc_ncm_ctx *ctx, struct sk_buff *skb, __le32 sign); | 136 | extern struct sk_buff *cdc_ncm_fill_tx_frame(struct cdc_ncm_ctx *ctx, struct sk_buff *skb, __le32 sign); |
| 134 | extern int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in); | 137 | extern int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in); |
| 135 | extern int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset); | 138 | extern int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset); |
| 139 | |||
| 140 | #endif /* __LINUX_USB_CDC_NCM_H */ | ||
