Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Include "opt_param.h" (ifdef _KERNEL_OPT) everywher...
details: https://anonhg.NetBSD.org/src/rev/3d15914a25c4
branches: trunk
changeset: 1021468:3d15914a25c4
user: simonb <simonb%NetBSD.org@localhost>
date: Mon May 31 14:38:55 2021 +0000
description:
Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE is
referenced since some sources include <machine/param.h>.
diffstat:
sys/arch/aarch64/include/param.h | 3 ++-
sys/arch/alpha/include/param.h | 6 +++++-
sys/arch/cats/include/param.h | 6 +++++-
sys/arch/hppa/include/param.h | 5 ++++-
sys/arch/i386/include/param.h | 6 +++++-
sys/arch/ia64/include/param.h | 6 +++++-
sys/arch/m68k/include/param.h | 6 +++++-
sys/arch/macppc/include/param.h | 6 +++++-
sys/arch/mips/include/mips_param.h | 7 ++++++-
sys/arch/powerpc/include/ibm4xx/cpu.h | 6 +++++-
sys/arch/powerpc/include/param.h | 3 ++-
sys/arch/riscv/include/param.h | 6 +++++-
sys/arch/sgimips/include/param.h | 6 +++++-
sys/arch/sh3/include/param.h | 5 ++++-
sys/arch/sparc64/include/param.h | 3 ++-
sys/arch/sun2/include/param.h | 6 +++++-
sys/arch/sun3/include/param.h | 6 +++++-
sys/arch/vax/include/param.h | 6 +++++-
sys/arch/x68k/include/param.h | 6 +++++-
19 files changed, 85 insertions(+), 19 deletions(-)
diffs (truncated from 370 to 300 lines):
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/aarch64/include/param.h
--- a/sys/arch/aarch64/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/aarch64/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.15 2021/01/24 12:51:32 jmcneill Exp $ */
+/* $NetBSD: param.h,v 1.16 2021/05/31 14:38:57 simonb Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
#ifdef _KERNEL_OPT
#include "opt_cputypes.h"
+#include "opt_param.h"
#endif
/*
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/alpha/include/param.h
--- a/sys/arch/alpha/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/alpha/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.47 2020/10/10 21:59:03 thorpej Exp $ */
+/* $NetBSD: param.h,v 1.48 2021/05/31 14:38:55 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -38,6 +38,10 @@
* @(#)param.h 8.1 (Berkeley) 6/10/93
*/
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for the Alpha.
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/cats/include/param.h
--- a/sys/arch/cats/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/cats/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.8 2010/12/01 06:47:16 skrll Exp $ */
+/* $NetBSD: param.h,v 1.9 2021/05/31 14:38:55 simonb Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -35,6 +35,10 @@
#ifndef _CATS_PARAM_H_
#define _CATS_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for ARM6+ processors
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/hppa/include/param.h
--- a/sys/arch/hppa/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/hppa/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.28 2021/05/08 13:10:29 skrll Exp $ */
+/* $NetBSD: param.h,v 1.29 2021/05/31 14:38:55 simonb Exp $ */
/* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */
@@ -27,6 +27,9 @@
#ifdef _KERNEL
#include <machine/cpu.h>
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
#endif
/*
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/i386/include/param.h
--- a/sys/arch/i386/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/i386/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.87 2020/03/05 15:18:54 riastradh Exp $ */
+/* $NetBSD: param.h,v 1.88 2021/05/31 14:38:55 simonb Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,6 +37,10 @@
#ifndef _I386_PARAM_H_
#define _I386_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for Intel 386.
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/ia64/include/param.h
--- a/sys/arch/ia64/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/ia64/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.10 2019/01/07 22:00:31 jdolecek Exp $ */
+/* $NetBSD: param.h,v 1.11 2021/05/31 14:38:55 simonb Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,6 +37,10 @@
#ifndef _IA64_PARAM_H_
#define _IA64_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for Intel Itanium.
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/m68k/include/param.h
--- a/sys/arch/m68k/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/m68k/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.23 2020/05/01 08:21:27 isaki Exp $ */
+/* $NetBSD: param.h,v 1.24 2021/05/31 14:38:55 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -41,6 +41,10 @@
#ifndef _M68K_PARAM_H_
#define _M68K_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine independent constants for m68k
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/macppc/include/param.h
--- a/sys/arch/macppc/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/macppc/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.21 2018/04/26 18:33:02 macallan Exp $ */
+/* $NetBSD: param.h,v 1.22 2021/05/31 14:38:56 simonb Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -31,6 +31,10 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for PowerPC (32-bit only currently)
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/mips/include/mips_param.h
--- a/sys/arch/mips/include/mips_param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/mips/include/mips_param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_param.h,v 1.50 2021/05/23 23:24:45 mrg Exp $ */
+/* $NetBSD: mips_param.h,v 1.51 2021/05/31 14:38:56 simonb Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -25,6 +25,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* No reason this can't be common
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/powerpc/include/ibm4xx/cpu.h
--- a/sys/arch/powerpc/include/ibm4xx/cpu.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/powerpc/include/ibm4xx/cpu.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.25 2021/03/30 02:04:44 rin Exp $ */
+/* $NetBSD: cpu.h,v 1.26 2021/05/31 14:38:56 simonb Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -38,6 +38,10 @@
#ifndef _IBM4XX_CPU_H_
#define _IBM4XX_CPU_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
#include <powerpc/psl.h>
#include <powerpc/spr.h>
#include <powerpc/ibm4xx/spr.h>
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/powerpc/include/param.h
--- a/sys/arch/powerpc/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/powerpc/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.33 2020/07/06 09:34:17 rin Exp $ */
+/* $NetBSD: param.h,v 1.34 2021/05/31 14:38:56 simonb Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -35,6 +35,7 @@
#define _POWERPC_PARAM_H
#ifdef _KERNEL_OPT
+#include "opt_param.h"
#include "opt_ppcarch.h"
#endif
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/riscv/include/param.h
--- a/sys/arch/riscv/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/riscv/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.4 2021/05/01 07:06:54 skrll Exp $ */
+/* $NetBSD: param.h,v 1.5 2021/05/31 14:38:57 simonb Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,6 +32,10 @@
#ifndef _RISCV_PARAM_H_
#define _RISCV_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
/*
* Machine dependent constants for all OpenRISC processors
*/
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/sgimips/include/param.h
--- a/sys/arch/sgimips/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/sgimips/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.17 2019/01/07 22:00:32 jdolecek Exp $ */
+/* $NetBSD: param.h,v 1.18 2021/05/31 14:38:56 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -37,6 +37,10 @@
#ifndef _SGIMIPS_PARAM_H_
#define _SGIMIPS_PARAM_H_
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
+
#if !defined(MSGBUFSIZE)
#define MSGBUFSIZE 8192
#endif
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/sh3/include/param.h
--- a/sys/arch/sh3/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/sh3/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.25 2020/05/01 08:21:27 isaki Exp $ */
+/* $NetBSD: param.h,v 1.26 2021/05/31 14:38:55 simonb Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -45,6 +45,9 @@
#if defined(_KERNEL) && !defined(_LOCORE)
#include <machine/cpu.h>
#endif
+#ifdef _KERNEL_OPT
+#include "opt_param.h"
+#endif
/* NetBSD/sh3 is 4KB page */
#define PGSHIFT 12
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/sparc64/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.61 2019/09/28 15:11:53 christos Exp $ */
+/* $NetBSD: param.h,v 1.62 2021/05/31 14:38:56 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -64,6 +64,7 @@
*/
#if defined(_KERNEL_OPT)
+#include "opt_param.h"
#include "opt_sparc_arch.h"
#endif
diff -r 54a76391e18b -r 3d15914a25c4 sys/arch/sun2/include/param.h
--- a/sys/arch/sun2/include/param.h Mon May 31 12:24:15 2021 +0000
+++ b/sys/arch/sun2/include/param.h Mon May 31 14:38:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.15 2012/08/11 17:03:26 tsutsui Exp $ */
+/* $NetBSD: param.h,v 1.16 2021/05/31 14:38:56 simonb Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -40,6 +40,10 @@
Home |
Main Index |
Thread Index |
Old Index