Source-Changes-HG archive

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

[.joined/src/trunk]: .joined/src/sys/kern Always declare function used in KAS...



details:   https://anonhg.NetBSD.org/.joined/src/rev/4ba57fb0f20d
branches:  trunk
changeset: 359382:4ba57fb0f20d
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 01 15:10:53 2022 +0000

description:
Always declare function used in KASSERT

diffstat:

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

diffs (34 lines):

diff -r 2ccd30537740 -r 4ba57fb0f20d sys/kern/subr_pcu.c
--- a/sys/kern/subr_pcu.c       Sat Jan 01 15:09:01 2022 +0000
+++ b/sys/kern/subr_pcu.c       Sat Jan 01 15:10:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pcu.c,v 1.24 2020/08/07 18:46:00 christos Exp $   */
+/*     $NetBSD: subr_pcu.c,v 1.25 2022/01/01 15:10:53 christos Exp $   */
 
 /*-
  * Copyright (c) 2011, 2014 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.24 2020/08/07 18:46:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pcu.c,v 1.25 2022/01/01 15:10:53 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -88,7 +88,6 @@
 /* PCU operations structure provided by the MD code. */
 extern const pcu_ops_t * const pcu_ops_md_defs[];
 
-#ifdef DIAGNOSTIC
 /*
  * pcu_available_p: true if lwp is allowed to use PCU state.
  */
@@ -99,7 +98,6 @@
        /* XXX Not sure this is safe unless l is locked!  */
        return (l->l_flag & (LW_SYSTEM|LW_SYSTEM_FPU)) != LW_SYSTEM;
 }
-#endif
 
 /*
  * pcu_switchpoint: release PCU state if the LWP is being run on another CPU.



Home | Main Index | Thread Index | Old Index