Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 2021 22:45:21 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6241b57131a6 - main - hid: add opt_hid.h to modules that use HID_DEBUG
Message-ID:  <202103032245.123MjLYY044147@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=6241b57131a60bc2bd0eda41c145aa9659c2886b

commit 6241b57131a60bc2bd0eda41c145aa9659c2886b
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2021-03-03 22:21:15 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2021-03-03 22:43:29 +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
---
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103032245.123MjLYY044147>