Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Since device.h now exposes uses of types defined her...



details:   https://anonhg.NetBSD.org/src/rev/7750c41a360f
branches:  trunk
changeset: 320905:7750c41a360f
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Mar 04 18:07:34 2018 +0000

description:
Since device.h now exposes uses of types defined here to _KMEMUSER
the types better be defined for _KMEMUSER as well.

diffstat:

 sys/sys/device_if.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1951e7ef1aa5 -r 7750c41a360f sys/sys/device_if.h
--- a/sys/sys/device_if.h       Sun Mar 04 16:45:12 2018 +0000
+++ b/sys/sys/device_if.h       Sun Mar 04 18:07:34 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: device_if.h,v 1.5 2010/02/24 22:38:10 dyoung Exp $     */
+/*     $NetBSD: device_if.h,v 1.6 2018/03/04 18:07:34 kre Exp $        */
 
 #ifndef        _SYS_DEVICE_IF_H
 #define        _SYS_DEVICE_IF_H
@@ -6,7 +6,7 @@
 struct device;
 typedef struct device *device_t;
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KMEMUSER)
 typedef enum devact_level {
          DEVACT_LEVEL_CLASS    = 0
        , DEVACT_LEVEL_DRIVER   = 1



Home | Main Index | Thread Index | Old Index