cdc: add header guards
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Sep 2015 01:10:16 +0000 (11:10 +1000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Sep 2015 04:53:24 +0000 (21:53 -0700)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/usb/cdc.h
include/uapi/linux/usb/cdc.h

index 959d0c838113bb0d3001a36a89b0274aad44d210..b5706f94ee9e4781efdfb03f796c2a649b624422 100644 (file)
@@ -7,6 +7,8 @@
  * modify it under the terms of the GNU General Public License
  * version 2 as published by the Free Software Foundation.
  */
+#ifndef __LINUX_USB_CDC_H
+#define __LINUX_USB_CDC_H
 
 #include <uapi/linux/usb/cdc.h>
 
@@ -45,3 +47,5 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
                                struct usb_interface *intf,
                                u8 *buffer,
                                int buflen);
+
+#endif /* __LINUX_USB_CDC_H */
index b6a9cdd6e096a26831bcb5c1cc69e6d41c8afe05..e2bc417b243bec21a8889e8397c9a1d19cc32955 100644 (file)
@@ -6,8 +6,8 @@
  * firmware based USB peripherals.
  */
 
-#ifndef __LINUX_USB_CDC_H
-#define __LINUX_USB_CDC_H
+#ifndef __UAPI_LINUX_USB_CDC_H
+#define __UAPI_LINUX_USB_CDC_H
 
 #include <linux/types.h>
 
@@ -444,4 +444,4 @@ struct usb_cdc_ncm_ndp_input_size {
 #define USB_CDC_NCM_CRC_NOT_APPENDED                   0x00
 #define USB_CDC_NCM_CRC_APPENDED                       0x01
 
-#endif /* __LINUX_USB_CDC_H */
+#endif /* __UAPI_LINUX_USB_CDC_H */