More const fixes for -Wall, -Wcast-qual
This commit is contained in:
parent
820ca326e1
commit
bc81493155
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43403
@ -105,6 +105,8 @@
|
||||
#include "sio.h"
|
||||
#include "opt_ddb.h"
|
||||
|
||||
void gdb_handle_exception (db_regs_t *, int, int);
|
||||
|
||||
#if NSIO == 0
|
||||
void
|
||||
gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
|
||||
@ -113,8 +115,6 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
|
||||
#else
|
||||
/************************************************************************/
|
||||
|
||||
void gdb_handle_exception (db_regs_t *, int, int);
|
||||
|
||||
extern jmp_buf db_jmpbuf;
|
||||
|
||||
/************************************************************************/
|
||||
|
@ -105,6 +105,8 @@
|
||||
#include "sio.h"
|
||||
#include "opt_ddb.h"
|
||||
|
||||
void gdb_handle_exception (db_regs_t *, int, int);
|
||||
|
||||
#if NSIO == 0
|
||||
void
|
||||
gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
|
||||
@ -113,8 +115,6 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
|
||||
#else
|
||||
/************************************************************************/
|
||||
|
||||
void gdb_handle_exception (db_regs_t *, int, int);
|
||||
|
||||
extern jmp_buf db_jmpbuf;
|
||||
|
||||
/************************************************************************/
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
|
||||
* $Id: init_main.c,v 1.104 1999/01/26 02:38:10 julian Exp $
|
||||
* $Id: init_main.c,v 1.105 1999/01/29 08:36:44 dillon Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h"
|
||||
@ -283,9 +283,9 @@ main(framep)
|
||||
/* ARGSUSED*/
|
||||
void
|
||||
kproc_start(udata)
|
||||
void *udata;
|
||||
const void *udata;
|
||||
{
|
||||
struct kproc_desc *kp = udata;
|
||||
const struct kproc_desc *kp = udata;
|
||||
struct proc *p = curproc;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
|
@ -13,7 +13,7 @@
|
||||
* bad that happens because of using this software isn't the responsibility
|
||||
* of the author. This software is distributed AS-IS.
|
||||
*
|
||||
* $Id: vfs_aio.c,v 1.40 1999/01/28 17:32:00 dillon Exp $
|
||||
* $Id: vfs_aio.c,v 1.41 1999/01/29 08:29:04 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -235,7 +235,7 @@ static int aio_aqueue(struct proc *p, struct aiocb *job, int type) ;
|
||||
static void aio_physwakeup(struct buf *bp);
|
||||
static int aio_fphysio(struct proc *p, struct aiocblist *aiocbe, int type);
|
||||
static int aio_qphysio(struct proc *p, struct aiocblist *iocb);
|
||||
static void aio_daemon(void *uproc);
|
||||
static void aio_daemon(const void *uproc);
|
||||
|
||||
SYSINIT(aio, SI_SUB_VFS, SI_ORDER_ANY, aio_onceonly, NULL);
|
||||
|
||||
@ -602,7 +602,7 @@ aio_process(struct aiocblist *aiocbe)
|
||||
* but the setup (and address space mgmt) is done in this routine.
|
||||
*/
|
||||
static void
|
||||
aio_daemon(void *uproc)
|
||||
aio_daemon(const void *uproc)
|
||||
{
|
||||
int s;
|
||||
struct aioproclist *aiop;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.183 1999/01/21 08:29:05 dillon Exp $
|
||||
* $Id: vfs_subr.c,v 1.184 1999/01/28 00:57:47 dillon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -905,7 +905,7 @@ vn_syncer_add_to_worklist(vp, delay)
|
||||
|
||||
static void sched_sync __P((void));
|
||||
static struct proc *updateproc;
|
||||
static struct kproc_desc up_kp = {
|
||||
static const struct kproc_desc up_kp = {
|
||||
"syncer",
|
||||
sched_sync,
|
||||
&updateproc
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.183 1999/01/21 08:29:05 dillon Exp $
|
||||
* $Id: vfs_subr.c,v 1.184 1999/01/28 00:57:47 dillon Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -905,7 +905,7 @@ vn_syncer_add_to_worklist(vp, delay)
|
||||
|
||||
static void sched_sync __P((void));
|
||||
static struct proc *updateproc;
|
||||
static struct kproc_desc up_kp = {
|
||||
static const struct kproc_desc up_kp = {
|
||||
"syncer",
|
||||
sched_sync,
|
||||
&updateproc
|
||||
|
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kernel.h 8.3 (Berkeley) 1/21/94
|
||||
* $Id: kernel.h,v 1.51 1999/01/28 17:30:51 dillon Exp $
|
||||
* $Id: kernel.h,v 1.52 1999/01/29 08:12:49 dillon Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_KERNEL_H_
|
||||
@ -284,7 +284,7 @@ struct kproc_desc {
|
||||
struct proc **global_procpp; /* ptr to proc ptr save area*/
|
||||
};
|
||||
|
||||
void kproc_start __P((void *udata));
|
||||
void kproc_start __P((const void *udata));
|
||||
void sysinit_add __P((struct sysinit **set));
|
||||
|
||||
#ifdef PSEUDO_LKM
|
||||
|
Loading…
Reference in New Issue
Block a user