Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Only define kernconfig_lock routines for _KERNEL



details:   https://anonhg.NetBSD.org/src/rev/e8bce4d5d6ff
branches:  trunk
changeset: 757274:e8bce4d5d6ff
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Aug 22 14:12:10 2010 +0000

description:
Only define kernconfig_lock routines for _KERNEL

Fixes i386 build problem reported by Juergen Hannken-Illjes.

diffstat:

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

diffs (22 lines):

diff -r d770e0b03768 -r e8bce4d5d6ff sys/sys/systm.h
--- a/sys/sys/systm.h   Sun Aug 22 04:42:57 2010 +0000
+++ b/sys/sys/systm.h   Sun Aug 22 14:12:10 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.240 2010/08/21 13:17:32 pgoyette Exp $     */
+/*     $NetBSD: systm.h,v 1.241 2010/08/22 14:12:10 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -492,10 +492,12 @@
 void   _kernel_lock(int);
 void   _kernel_unlock(int, int *);
 
+#ifdef _KERNEL
 void   kernconfig_lock_init(void);
 void   kernconfig_lock(void);
 void   kernconfig_unlock(void);
 bool   kernconfig_is_held(void);
+#endif
 
 #if defined(MULTIPROCESSOR) || defined(_MODULE)
 #define        KERNEL_LOCK(count, lwp)                 \



Home | Main Index | Thread Index | Old Index