Commit 306dac69 authored by Tobias Klauser's avatar Tobias Klauser Committed by Greg Kroah-Hartman

staging: usbip: Add header guards to stub.h and vhci.h

stub.h and vhci.h are missing proper #ifndef/#define header guards, so
add them.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c8742cf0
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
* USA. * USA.
*/ */
#ifndef __USBIP_STUB_H
#define __USBIP_STUB_H
#include <linux/list.h> #include <linux/list.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
...@@ -106,3 +109,5 @@ void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum, ...@@ -106,3 +109,5 @@ void stub_enqueue_ret_unlink(struct stub_device *sdev, __u32 seqnum,
__u32 status); __u32 status);
void stub_complete(struct urb *urb); void stub_complete(struct urb *urb);
int stub_tx_loop(void *data); int stub_tx_loop(void *data);
#endif /* __USBIP_STUB_H */
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
* *
*/ */
#ifndef __USBIP_VHCI_H
#define __USBIP_VHCI_H
#include <linux/device.h> #include <linux/device.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
...@@ -129,3 +132,5 @@ static inline struct device *vhci_dev(struct vhci_hcd *vhci) ...@@ -129,3 +132,5 @@ static inline struct device *vhci_dev(struct vhci_hcd *vhci)
{ {
return vhci_to_hcd(vhci)->self.controller; return vhci_to_hcd(vhci)->self.controller;
} }
#endif /* __USBIP_VHCI_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment