Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/onewire Only include opt_xxx.h headers when _KERNEL_...



details:   https://anonhg.NetBSD.org/src/rev/f87dce852695
branches:  trunk
changeset: 1009170:f87dce852695
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Apr 14 15:36:02 2020 +0000

description:
Only include opt_xxx.h headers when _KERNEL_OPT is defined.

diffstat:

 sys/dev/onewire/onewire.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 5dbb3ae069b7 -r f87dce852695 sys/dev/onewire/onewire.c
--- a/sys/dev/onewire/onewire.c Tue Apr 14 15:16:06 2020 +0000
+++ b/sys/dev/onewire/onewire.c Tue Apr 14 15:36:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: onewire.c,v 1.19 2020/04/14 13:36:51 macallan Exp $    */
+/*     $NetBSD: onewire.c,v 1.20 2020/04/14 15:36:02 kre Exp $ */
 /*     $OpenBSD: onewire.c,v 1.1 2006/03/04 16:27:03 grange Exp $      */
 
 /*-
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: onewire.c,v 1.19 2020/04/14 13:36:51 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: onewire.c,v 1.20 2020/04/14 15:36:02 kre Exp $");
 
 /*
  * 1-Wire bus driver.
@@ -64,7 +64,9 @@
 #include <sys/queue.h>
 #include <sys/module.h>
 
+#ifdef _KERNEL_OPT
 #include "opt_onewire.h"
+#endif
 
 #include <dev/onewire/onewirereg.h>
 #include <dev/onewire/onewirevar.h>



Home | Main Index | Thread Index | Old Index