Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb usbdi(9): Add some missing header include guards.
details: https://anonhg.NetBSD.org/src/rev/b4c060d0c11f
branches: trunk
changeset: 361565:b4c060d0c11f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Feb 14 09:23:32 2022 +0000
description:
usbdi(9): Add some missing header include guards.
diffstat:
sys/dev/usb/usb_mem.h | 7 ++++++-
sys/dev/usb/usbdivar.h | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 20bcea42652c -r b4c060d0c11f sys/dev/usb/usb_mem.h
--- a/sys/dev/usb/usb_mem.h Mon Feb 14 09:22:30 2022 +0000
+++ b/sys/dev/usb/usb_mem.h Mon Feb 14 09:23:32 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_mem.h,v 1.35 2021/12/21 09:51:22 skrll Exp $ */
+/* $NetBSD: usb_mem.h,v 1.36 2022/02/14 09:23:32 riastradh Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_mem.h,v 1.9 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@@ -31,6 +31,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _DEV_USB_USB_MEM_H_
+#define _DEV_USB_USB_MEM_H_
+
typedef struct usb_dma_block {
bus_dma_tag_t tag;
bus_dmamap_t map;
@@ -60,3 +63,5 @@
#define DMAADDR(dma, o) usb_dmaaddr((dma), (o))
#define KERNADDR(dma, o) \
((void *)((char *)(dma)->udma_block->kaddr + (dma)->udma_offs + (o)))
+
+#endif /* _DEV_USB_USB_MEM_H_ */
diff -r 20bcea42652c -r b4c060d0c11f sys/dev/usb/usbdivar.h
--- a/sys/dev/usb/usbdivar.h Mon Feb 14 09:22:30 2022 +0000
+++ b/sys/dev/usb/usbdivar.h Mon Feb 14 09:23:32 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdivar.h,v 1.130 2021/09/07 10:44:18 riastradh Exp $ */
+/* $NetBSD: usbdivar.h,v 1.131 2022/02/14 09:23:32 riastradh Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -30,6 +30,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _DEV_USB_USBDIVAR_H_
+#define _DEV_USB_USBDIVAR_H_
+
/*
* Discussion about locking in the USB code:
*
@@ -397,3 +400,5 @@
#define usbd_lock_pipe(p) mutex_enter((p)->up_dev->ud_bus->ub_lock)
#define usbd_unlock_pipe(p) mutex_exit((p)->up_dev->ud_bus->ub_lock)
+
+#endif /* _DEV_USB_USBDIVAR_H_ */
Home |
Main Index |
Thread Index |
Old Index