Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/x86 remove DIAGNOSTIC so that function is defin...



details:   https://anonhg.NetBSD.org/src/rev/cfb7683c691c
branches:  trunk
changeset: 359435:cfb7683c691c
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 05 20:21:29 2022 +0000

description:
remove DIAGNOSTIC so that function is defined for KASSERTMSG. Hope that the
compiler removes it.

diffstat:

 sys/arch/xen/x86/xen_ipi.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 07d989eac482 -r cfb7683c691c sys/arch/xen/x86/xen_ipi.c
--- a/sys/arch/xen/x86/xen_ipi.c        Wed Jan 05 19:53:32 2022 +0000
+++ b/sys/arch/xen/x86/xen_ipi.c        Wed Jan 05 20:21:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_ipi.c,v 1.39 2020/05/07 19:48:58 bouyer Exp $ */
+/* $NetBSD: xen_ipi.c,v 1.40 2022/01/05 20:21:29 christos Exp $ */
 
 /*-
  * Copyright (c) 2011, 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  * Based on: x86/ipi.c
  */
 
-__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.39 2020/05/07 19:48:58 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.40 2022/01/05 20:21:29 christos Exp $");
 
 #include "opt_ddb.h"
 
@@ -151,7 +151,6 @@
        hypervisor_unmask_event(evtchn);
 }
 
-#ifdef DIAGNOSTIC
 static inline bool /* helper */
 valid_ipimask(uint32_t ipimask)
 {
@@ -166,7 +165,6 @@
        }
 
 }
-#endif
 
 int
 xen_send_ipi(struct cpu_info *ci, uint32_t ipimask)



Home | Main Index | Thread Index | Old Index