constify dkdriver

This commit is contained in:
matt 2008-02-28 04:55:47 +00:00
parent d15719537b
commit 49cf9ad72a
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_disk.c,v 1.91 2008/01/31 18:30:55 dyoung Exp $ */
/* $NetBSD: subr_disk.c,v 1.92 2008/02/28 04:55:47 matt Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2000 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.91 2008/01/31 18:30:55 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.92 2008/02/28 04:55:47 matt Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -185,7 +185,7 @@ disk_find(const char *name)
}
void
disk_init(struct disk *diskp, const char *name, struct dkdriver *driver)
disk_init(struct disk *diskp, const char *name, const struct dkdriver *driver)
{
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: disk.h,v 1.49 2008/02/11 22:40:14 dyoung Exp $ */
/* $NetBSD: disk.h,v 1.50 2008/02/28 04:55:47 matt Exp $ */
/*-
* Copyright (c) 1996, 1997, 2004 The NetBSD Foundation, Inc.
@ -425,7 +425,7 @@ struct disk {
*/
struct io_stats *dk_stats;
struct dkdriver *dk_driver; /* pointer to driver */
const struct dkdriver *dk_driver; /* pointer to driver */
/*
* Information required to be the parent of a disk wedge.
@ -505,7 +505,7 @@ struct proc;
void disk_attach(struct disk *);
void disk_detach(struct disk *);
void disk_init(struct disk *, const char *, struct dkdriver *);
void disk_init(struct disk *, const char *, const struct dkdriver *);
void disk_destroy(struct disk *);
void disk_busy(struct disk *);
void disk_unbusy(struct disk *, long, int);