Fix a warning from gcc 4 about stripping the volatile qualifier by a cast

by doing the proper __UNVOLATILE() dance.
This commit is contained in:
hauke 2007-06-23 15:32:56 +00:00
parent 6d0a5fcf1a
commit 3d7f38ec94
6 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.8 2005/12/11 12:18:03 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.9 2007/06/23 15:32:56 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.8 2005/12/11 12:18:03 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.9 2007/06/23 15:32:56 hauke Exp $");
#include "opt_kgdb.h"
#include <sys/param.h>
@ -179,7 +179,7 @@ zs_kgdb_init(void)
zs_setparam(&cs, 0, kgdb_rate);
/* Store the getc/putc functions and arg. */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.5 2007/03/04 06:00:10 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.6 2007/06/23 15:32:56 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.5 2007/03/04 06:00:10 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.6 2007/06/23 15:32:56 hauke Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -180,7 +180,7 @@ zs_kgdb_init()
zs_setparam(&cs, 0, kgdb_rate);
/* Store the getc/putc functions and arg. */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.8 2005/12/11 12:18:25 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.9 2007/06/23 15:32:57 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.8 2005/12/11 12:18:25 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.9 2007/06/23 15:32:57 hauke Exp $");
#include "opt_kgdb.h"
@ -169,7 +169,7 @@ zs_kgdb_init(void)
zs_setparam(&cs, 0, kgdb_rate);
/* Store the getc/putc functions and arg. */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.10 2005/12/11 12:18:52 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.11 2007/06/23 15:32:57 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.10 2005/12/11 12:18:52 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.11 2007/06/23 15:32:57 hauke Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -149,7 +149,7 @@ zs_kgdb_init()
zc = zs_get_chan_addr(unit, channel);
/* Attach KGDB comms functions to this device */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.7 2007/03/04 06:00:51 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.8 2007/06/23 15:32:57 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.7 2007/03/04 06:00:51 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.8 2007/06/23 15:32:57 hauke Exp $");
#include "opt_kgdb.h"
@ -167,7 +167,7 @@ zs_kgdb_init(void)
zs_setparam(&cs, 0, kgdb_rate);
/* Store the getc/putc functions and arg. */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs_kgdb.c,v 1.22 2007/03/04 06:00:54 christos Exp $ */
/* $NetBSD: zs_kgdb.c,v 1.23 2007/06/23 15:32:58 hauke Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.22 2007/03/04 06:00:54 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: zs_kgdb.c,v 1.23 2007/06/23 15:32:58 hauke Exp $");
#include "opt_kgdb.h"
@ -170,7 +170,7 @@ zs_kgdb_init(void)
zs_setparam(&cs, 0, kgdb_rate);
/* Store the getc/putc functions and arg. */
kgdb_attach(zs_getc, zs_putc, (void *)zc);
kgdb_attach(zs_getc, zs_putc, __UNVOLATILE(zc));
}
/*