Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Fix build in admittedly quixotic case w...
details: https://anonhg.NetBSD.org/src/rev/5acc639ffa49
branches: trunk
changeset: 762504:5acc639ffa49
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Feb 22 07:12:29 2011 +0000
description:
Fix build in admittedly quixotic case with IPMI but no PCI or ACPI.
(ACPI currently doesn't work without PCI, fwiw.)
diffstat:
sys/arch/amd64/amd64/mainbus.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 8f3d8dae7088 -r 5acc639ffa49 sys/arch/amd64/amd64/mainbus.c
--- a/sys/arch/amd64/amd64/mainbus.c Tue Feb 22 06:37:24 2011 +0000
+++ b/sys/arch/amd64/amd64/mainbus.c Tue Feb 22 07:12:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.31 2010/04/28 19:17:03 dyoung Exp $ */
+/* $NetBSD: mainbus.c,v 1.32 2011/02/22 07:12:29 dholland Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.31 2010/04/28 19:17:03 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.32 2011/02/22 07:12:29 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -149,9 +149,11 @@
void
mainbus_attach(device_t parent, device_t self, void *aux)
{
+#if NPCI > 0 || NACPICA > 0 || NIPMI > 0
+ union mainbus_attach_args mba;
+#endif
#if NPCI > 0
int mode;
- union mainbus_attach_args mba;
#endif
#if NACPICA > 0
int acpi_present = 0;
Home |
Main Index |
Thread Index |
Old Index