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 Conditionally compile a conditionally used ...
details: https://anonhg.NetBSD.org/src/rev/4fbd3d4512c6
branches: trunk
changeset: 448909:4fbd3d4512c6
user: cherry <cherry%NetBSD.org@localhost>
date: Wed Feb 13 09:57:46 2019 +0000
description:
Conditionally compile a conditionally used variable.
diffstat:
sys/arch/xen/x86/xen_mainbus.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 77fe0fd3a2f7 -r 4fbd3d4512c6 sys/arch/xen/x86/xen_mainbus.c
--- a/sys/arch/xen/x86/xen_mainbus.c Wed Feb 13 08:46:40 2019 +0000
+++ b/sys/arch/xen/x86/xen_mainbus.c Wed Feb 13 09:57:46 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_mainbus.c,v 1.4 2018/12/22 08:35:04 maxv Exp $ */
+/* $NetBSD: xen_mainbus.c,v 1.5 2019/02/13 09:57:46 cherry Exp $ */
/* NetBSD: mainbus.c,v 1.19 2017/05/23 08:54:39 nonaka Exp */
/* NetBSD: mainbus.c,v 1.53 2003/10/27 14:11:47 junyoung Exp */
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_mainbus.c,v 1.4 2018/12/22 08:35:04 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_mainbus.c,v 1.5 2019/02/13 09:57:46 cherry Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -130,7 +130,9 @@
void
xen_mainbus_attach(device_t parent, device_t self, void *aux)
{
+#if NIPMI > 0 || NHYPERVISOR > 0
union xen_mainbus_attach_args mba;
+#endif
#if NIPMI > 0
memset(&mba.mba_ipmi, 0, sizeof(mba.mba_ipmi));
Home |
Main Index |
Thread Index |
Old Index