Skip to content

Commit b84ee0d

Browse files
sfrothwelldavem330
authored andcommitted
cdc: add header guards
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d5566fd commit b84ee0d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

include/linux/usb/cdc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* modify it under the terms of the GNU General Public License
88
* version 2 as published by the Free Software Foundation.
99
*/
10+
#ifndef __LINUX_USB_CDC_H
11+
#define __LINUX_USB_CDC_H
1012

1113
#include <uapi/linux/usb/cdc.h>
1214

@@ -45,3 +47,5 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
4547
struct usb_interface *intf,
4648
u8 *buffer,
4749
int buflen);
50+
51+
#endif /* __LINUX_USB_CDC_H */

include/uapi/linux/usb/cdc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* firmware based USB peripherals.
77
*/
88

9-
#ifndef __LINUX_USB_CDC_H
10-
#define __LINUX_USB_CDC_H
9+
#ifndef __UAPI_LINUX_USB_CDC_H
10+
#define __UAPI_LINUX_USB_CDC_H
1111

1212
#include <linux/types.h>
1313

@@ -444,4 +444,4 @@ struct usb_cdc_ncm_ndp_input_size {
444444
#define USB_CDC_NCM_CRC_NOT_APPENDED 0x00
445445
#define USB_CDC_NCM_CRC_APPENDED 0x01
446446

447-
#endif /* __LINUX_USB_CDC_H */
447+
#endif /* __UAPI_LINUX_USB_CDC_H */

0 commit comments

Comments
 (0)