Module Name: src Committed By: joerg Date: Sat Feb 7 20:01:48 UTC 2015
Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: valid_ipimask is only used under DIAGNOSTIC, so only define it then. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/arch/xen/x86/xen_ipi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/x86/xen_ipi.c diff -u src/sys/arch/xen/x86/xen_ipi.c:1.18 src/sys/arch/xen/x86/xen_ipi.c:1.19 --- src/sys/arch/xen/x86/xen_ipi.c:1.18 Mon May 19 22:47:54 2014 +++ src/sys/arch/xen/x86/xen_ipi.c Sat Feb 7 20:01:48 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: xen_ipi.c,v 1.18 2014/05/19 22:47:54 rmind Exp $ */ +/* $NetBSD: xen_ipi.c,v 1.19 2015/02/07 20:01:48 joerg Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -33,10 +33,10 @@ /* * Based on: x86/ipi.c - * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.18 2014/05/19 22:47:54 rmind Exp $"); + * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.19 2015/02/07 20:01:48 joerg Exp $"); */ -__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.18 2014/05/19 22:47:54 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.19 2015/02/07 20:01:48 joerg Exp $"); #include <sys/types.h> @@ -131,6 +131,7 @@ xen_ipi_init(void) hypervisor_enable_event(evtchn); } +#ifdef DIAGNOSTIC static inline bool /* helper */ valid_ipimask(uint32_t ipimask) { @@ -145,6 +146,7 @@ valid_ipimask(uint32_t ipimask) } } +#endif int xen_send_ipi(struct cpu_info *ci, uint32_t ipimask)