git: 99bc385243e8 - stable/13 - hid: add opt_hid.h to modules that use HID_DEBUG
Vladimir Kondratyev
wulf at FreeBSD.org
Sun Apr 11 21:49:59 UTC 2021
The branch stable/13 has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=99bc385243e80406ccb504384132738023be182a
commit 99bc385243e80406ccb504384132738023be182a
Author: Vladimir Kondratyev <wulf at FreeBSD.org>
AuthorDate: 2021-03-03 22:21:15 +0000
Commit: Vladimir Kondratyev <wulf at FreeBSD.org>
CommitDate: 2021-04-11 21:48:51 +0000
hid: add opt_hid.h to modules that use HID_DEBUG
Submitted by: Greg V <greg_AT_unrelenting_DOT_technology>
Reviewed by: imp, wulf
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D28995
(cherry picked from commit 6241b57131a60bc2bd0eda41c145aa9659c2886b)
---
sys/dev/hid/hconf.c | 2 ++
sys/dev/hid/hkbd.c | 1 +
sys/modules/hid/hconf/Makefile | 1 +
sys/modules/hid/hkbd/Makefile | 2 +-
sys/modules/hid/ps4dshock/Makefile | 1 +
5 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/sys/dev/hid/hconf.c b/sys/dev/hid/hconf.c
index cb0465e71b3e..90cd52d3116c 100644
--- a/sys/dev/hid/hconf.c
+++ b/sys/dev/hid/hconf.c
@@ -34,6 +34,8 @@ __FBSDID("$FreeBSD$");
* https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-precision-touchpad-required-hid-top-level-collections
*/
+#include "opt_hid.h"
+
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/kernel.h>
diff --git a/sys/dev/hid/hkbd.c b/sys/dev/hid/hkbd.c
index 89325f9b2499..775ad677f4de 100644
--- a/sys/dev/hid/hkbd.c
+++ b/sys/dev/hid/hkbd.c
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
* HID spec: http://www.usb.org/developers/devclass_docs/HID1_11.pdf
*/
+#include "opt_hid.h"
#include "opt_kbd.h"
#include "opt_hkbd.h"
#include "opt_evdev.h"
diff --git a/sys/modules/hid/hconf/Makefile b/sys/modules/hid/hconf/Makefile
index 1e5c68fe1848..0ac8d969cd71 100644
--- a/sys/modules/hid/hconf/Makefile
+++ b/sys/modules/hid/hconf/Makefile
@@ -4,6 +4,7 @@
KMOD= hconf
SRCS= hconf.c
+SRCS+= opt_hid.h
SRCS+= bus_if.h device_if.h
.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hkbd/Makefile b/sys/modules/hid/hkbd/Makefile
index 38221227d1cd..8bb1c339ac6c 100644
--- a/sys/modules/hid/hkbd/Makefile
+++ b/sys/modules/hid/hkbd/Makefile
@@ -4,7 +4,7 @@
KMOD= hkbd
SRCS= hkbd.c
-SRCS+= opt_evdev.h opt_kbd.h opt_hkbd.h
+SRCS+= opt_hid.h opt_evdev.h opt_kbd.h opt_hkbd.h
SRCS+= bus_if.h device_if.h
.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/ps4dshock/Makefile b/sys/modules/hid/ps4dshock/Makefile
index 688494f33ac6..ab46ba3f2363 100644
--- a/sys/modules/hid/ps4dshock/Makefile
+++ b/sys/modules/hid/ps4dshock/Makefile
@@ -4,6 +4,7 @@
KMOD= ps4dshock
SRCS= ps4dshock.c
+SRCS+= opt_hid.h
SRCS+= bus_if.h device_if.h usbdevs.h
.include <bsd.kmod.mk>
More information about the dev-commits-src-all
mailing list