Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ofw Wrap some definite-only-in-kernel-environment pr...



details:   https://anonhg.NetBSD.org/src/rev/bd2fe92c62f3
branches:  trunk
changeset: 980494:bd2fe92c62f3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Feb 06 16:07:13 2021 +0000

description:
Wrap some definite-only-in-kernel-environment prototypees in _KERNEL.

diffstat:

 sys/dev/ofw/openfirm.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 37adb3aca9bd -r bd2fe92c62f3 sys/dev/ofw/openfirm.h
--- a/sys/dev/ofw/openfirm.h    Sat Feb 06 16:03:31 2021 +0000
+++ b/sys/dev/ofw/openfirm.h    Sat Feb 06 16:07:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.h,v 1.45 2021/02/05 17:17:59 thorpej Exp $    */
+/*     $NetBSD: openfirm.h,v 1.46 2021/02/06 16:07:13 thorpej Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -104,6 +104,7 @@
 /*
  * Functions and variables provided by machine-independent code.
  */
+#ifdef _KERNEL
 struct device_compatible_entry;
 
 devhandle_t    devhandle_from_of(int);
@@ -131,6 +132,7 @@
 
 void   of_enter_i2c_devs(prop_dictionary_t, int, size_t, int);
 void   of_enter_spi_devs(prop_dictionary_t, int, size_t);
+#endif /* _KERNEL */
 
 bool   of_hasprop(int, const char *);
 #define of_getprop_bool        of_hasprop



Home | Main Index | Thread Index | Old Index