Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Patterned after next68k, omit inclusion of <sys/dev...
details: https://anonhg.NetBSD.org/src/rev/f432a7c6e809
branches: trunk
changeset: 584236:f432a7c6e809
user: he <he%NetBSD.org@localhost>
date: Sun Sep 11 23:15:18 2005 +0000
description:
Patterned after next68k, omit inclusion of <sys/device.h> if we
are not in _KERNEL. This should work around our lint problems
related to "unspecified-size array at end of struct" constructs.
diffstat:
sys/arch/hp300/include/param.h | 4 +++-
sys/arch/mvme68k/include/param.h | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r c219506f952b -r f432a7c6e809 sys/arch/hp300/include/param.h
--- a/sys/arch/hp300/include/param.h Sun Sep 11 23:13:03 2005 +0000
+++ b/sys/arch/hp300/include/param.h Sun Sep 11 23:15:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.45 2004/08/28 19:46:41 thorpej Exp $ */
+/* $NetBSD: param.h,v 1.46 2005/09/11 23:15:18 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -85,10 +85,12 @@
#define _MACHINE hp300
#define MACHINE "hp300"
+#ifdef _KERNEL
/*
* Interrupt glue.
*/
#include <machine/intr.h>
+#endif /* _KERNEL */
#define PGSHIFT 12 /* LOG2(NBPG) */
#define KERNBASE 0x00000000 /* start of kernel virtual */
diff -r c219506f952b -r f432a7c6e809 sys/arch/mvme68k/include/param.h
--- a/sys/arch/mvme68k/include/param.h Sun Sep 11 23:13:03 2005 +0000
+++ b/sys/arch/mvme68k/include/param.h Sun Sep 11 23:15:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.26 2003/08/07 16:28:41 agc Exp $ */
+/* $NetBSD: param.h,v 1.27 2005/09/11 23:15:18 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -85,10 +85,12 @@
#define _MACHINE mvme68k
#define MACHINE "mvme68k"
+#ifdef _KERNEL
/*
* Grab the interrupt definitions
*/
#include <machine/intr.h>
+#endif /* _KERNEL */
#define PGSHIFT 12 /* LOG2(NBPG) */
#define KERNBASE 0x00000000 /* start of kernel virtual */
Home |
Main Index |
Thread Index |
Old Index