Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Cast through (void *) to appease gcc3.
details: https://anonhg.NetBSD.org/src/rev/a85cf29ef28b
branches: trunk
changeset: 552581:a85cf29ef28b
user: cl <cl%NetBSD.org@localhost>
date: Sat Sep 27 20:01:58 2003 +0000
description:
Cast through (void *) to appease gcc3.
diffstat:
sys/arch/atari/atari/machdep.c | 6 +++---
sys/arch/atari/atari/pmap.c | 4 ++--
sys/arch/cesfic/cesfic/machdep.c | 6 +++---
sys/arch/hp300/hp300/machdep.c | 6 +++---
sys/arch/luna68k/luna68k/machdep.c | 6 +++---
sys/arch/m68k/m68k/pmap_motorola.c | 6 +++---
sys/arch/mac68k/mac68k/machdep.c | 6 +++---
sys/arch/mvme68k/mvme68k/machdep.c | 6 +++---
sys/arch/news68k/news68k/machdep.c | 6 +++---
sys/arch/next68k/next68k/machdep.c | 6 +++---
sys/arch/sun2/sun2/machdep.c | 6 +++---
sys/arch/sun3/sun3/machdep.c | 6 +++---
sys/arch/x68k/x68k/machdep.c | 6 +++---
13 files changed, 38 insertions(+), 38 deletions(-)
diffs (truncated from 345 to 300 lines):
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/atari/atari/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.129 2003/08/07 16:26:56 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.130 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.129 2003/08/07 16:26:56 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.130 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -273,7 +273,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/atari/atari/pmap.c
--- a/sys/arch/atari/atari/pmap.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/atari/atari/pmap.c Sat Sep 27 20:01:58 2003 +0000
@@ -106,7 +106,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.85 2003/08/07 16:26:56 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.86 2003/09/27 20:01:58 cl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -524,7 +524,7 @@
if (addr == 0)
panic("pmap_init: can't allocate data structures");
Segtabzero = (u_int *) addr;
- (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)&Segtabzeropa);
+ (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)(void *)&Segtabzeropa);
addr += ATARI_STSIZE;
pv_table = (pv_entry_t) addr;
addr += page_cnt * sizeof(struct pv_entry);
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/cesfic/cesfic/machdep.c
--- a/sys/arch/cesfic/cesfic/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/cesfic/cesfic/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.23 2003/09/22 14:27:04 cl Exp $ */
+/* $NetBSD: machdep.c,v 1.24 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 2003/09/22 14:27:04 cl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 2003/09/27 20:01:58 cl Exp $");
#include "opt_bufcache.h"
#include "opt_ddb.h"
@@ -330,7 +330,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vm_offset_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vm_offset_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/hp300/hp300/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.173 2003/08/07 16:27:37 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.174 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.173 2003/08/07 16:27:37 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_compat_hpux.h"
@@ -364,7 +364,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/luna68k/luna68k/machdep.c
--- a/sys/arch/luna68k/luna68k/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/luna68k/luna68k/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.33 2003/06/29 22:28:28 fvdl Exp $ */
+/* $NetBSD: machdep.c,v 1.34 2003/09/27 20:01:58 cl Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.33 2003/06/29 22:28:28 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.34 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -286,7 +286,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/m68k/m68k/pmap_motorola.c
--- a/sys/arch/m68k/m68k/pmap_motorola.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/m68k/m68k/pmap_motorola.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_motorola.c,v 1.6 2003/08/07 16:28:17 agc Exp $ */
+/* $NetBSD: pmap_motorola.c,v 1.7 2003/09/27 20:01:59 cl Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.6 2003/08/07 16:28:17 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.7 2003/09/27 20:01:59 cl Exp $");
#include "opt_compat_hpux.h"
@@ -417,7 +417,7 @@
panic("pmap_init: can't allocate data structures");
Segtabzero = (st_entry_t *) addr;
- (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)&Segtabzeropa);
+ (void) pmap_extract(pmap_kernel(), addr, (paddr_t *)(void *)&Segtabzeropa);
addr += M68K_STSIZE;
pv_table = (struct pv_entry *) addr;
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.292 2003/08/07 16:28:22 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.293 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.292 2003/08/07 16:28:22 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.293 2003/09/27 20:01:58 cl Exp $");
#include "opt_adb.h"
#include "opt_ddb.h"
@@ -470,7 +470,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE,
UVM_INH_NONE, UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/mvme68k/mvme68k/machdep.c
--- a/sys/arch/mvme68k/mvme68k/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/mvme68k/mvme68k/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.105 2003/08/07 16:28:42 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.106 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.105 2003/08/07 16:28:42 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.106 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_compat_hpux.h"
@@ -528,7 +528,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/news68k/news68k/machdep.c
--- a/sys/arch/news68k/news68k/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/news68k/news68k/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.44 2003/08/07 16:28:51 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.45 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2003/08/07 16:28:51 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -289,7 +289,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/next68k/next68k/machdep.c
--- a/sys/arch/next68k/next68k/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/next68k/next68k/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.63 2003/08/07 16:28:56 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.64 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.63 2003/08/07 16:28:56 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.64 2003/09/27 20:01:58 cl Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -366,7 +366,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/sun2/sun2/machdep.c
--- a/sys/arch/sun2/sun2/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/sun2/sun2/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.29 2003/08/07 16:29:53 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.30 2003/09/27 20:01:59 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -160,7 +160,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2003/08/07 16:29:53 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.30 2003/09/27 20:01:59 cl Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -358,7 +358,7 @@
* in that they usually occupy more virtual memory than physical.
*/
size = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *) &buffers, round_page(size),
+ if (uvm_map(kernel_map, (vaddr_t *)(void *)&buffers, round_page(size),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 3d8ff93b3840 -r a85cf29ef28b sys/arch/sun3/sun3/machdep.c
--- a/sys/arch/sun3/sun3/machdep.c Sat Sep 27 19:35:14 2003 +0000
+++ b/sys/arch/sun3/sun3/machdep.c Sat Sep 27 20:01:58 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.167 2003/08/07 16:29:57 agc Exp $ */
+/* $NetBSD: machdep.c,v 1.168 2003/09/27 20:01:58 cl Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
Home |
Main Index |
Thread Index |
Old Index