Skip to content

Commit

Permalink
staging: usbip: Add header guards to stub.h and vhci.h
Browse files Browse the repository at this point in the history
stub.h and vhci.h are missing proper #ifndef/#define header guards, so
add them.

Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
tklauser authored and gregkh committed Aug 23, 2011
1 parent c8742cf commit 306dac6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/usbip/stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
* USA.
*/

#ifndef __USBIP_STUB_H
#define __USBIP_STUB_H

#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
Expand Down Expand Up @@ -106,3 +109,5 @@ void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
__u32 status);
void stub_complete(struct urb *urb);
int stub_tx_loop(void *data);

#endif /* __USBIP_STUB_H */
5 changes: 5 additions & 0 deletions drivers/staging/usbip/vhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*
*/

#ifndef __USBIP_VHCI_H
#define __USBIP_VHCI_H

#include <linux/device.h>
#include <linux/list.h>
#include <linux/spinlock.h>
Expand Down Expand Up @@ -129,3 +132,5 @@ static inline struct device *vhci_dev(struct vhci_hcd *vhci)
{
return vhci_to_hcd(vhci)->self.controller;
}

#endif /* __USBIP_VHCI_H */

0 comments on commit 306dac6

Please sign in to comment.