summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2004-06-02 22:58:28 +0000
committerdrochner <drochner@NetBSD.org>2004-06-02 22:58:28 +0000
commite7bdadd856b93c841d8edbc8d39b6b2c45778544 (patch)
tree661dbfcd246b3bc5706d0ed7ffcc81aeeae8e65f /sys/dev/raidframe
parent44a1e00a08945938fcce666bdc348a06042ffa54 (diff)
fix const'ificication, gcc-3.4 will notice it
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/raidframevar.h4
-rw-r--r--sys/dev/raidframe/rf_desc.h4
-rw-r--r--sys/dev/raidframe/rf_driver.c6
-rw-r--r--sys/dev/raidframe/rf_driver.h4
4 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/raidframe/raidframevar.h b/sys/dev/raidframe/raidframevar.h
index 297debebc64..393e89bb283 100644
--- a/sys/dev/raidframe/raidframevar.h
+++ b/sys/dev/raidframe/raidframevar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: raidframevar.h,v 1.6 2004/01/04 06:37:16 oster Exp $ */
+/* $NetBSD: raidframevar.h,v 1.7 2004/06/02 22:58:28 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -569,7 +569,7 @@ typedef struct RF_LayoutSW_s {
/* states to step through in an access. Must end with "LastState". The
* default is DefaultStates in rf_layout.c */
- RF_AccessState_t *states;
+ const RF_AccessState_t *states;
RF_AccessStripeMapFlags_t flags;
#endif /* !KERNEL */
diff --git a/sys/dev/raidframe/rf_desc.h b/sys/dev/raidframe/rf_desc.h
index 2ee060901cd..99cbd6b9427 100644
--- a/sys/dev/raidframe/rf_desc.h
+++ b/sys/dev/raidframe/rf_desc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_desc.h,v 1.13 2004/04/09 23:10:16 oster Exp $ */
+/* $NetBSD: rf_desc.h,v 1.14 2004/06/02 22:58:28 drochner Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -76,7 +76,7 @@ struct RF_RaidAccessDesc_s {
RF_RaidAccessFlags_t flags; /* flags controlling operation */
int state; /* index into states telling how far along the
* RAID operation has gotten */
- RF_AccessState_t *states; /* array of states to be run */
+ const RF_AccessState_t *states; /* array of states to be run */
int status; /* pass/fail status of the last operation */
RF_DagList_t *dagList; /* list of dag lists, one list per stripe */
RF_VoidPointerListElem_t *iobufs; /* iobufs that need to be cleaned
diff --git a/sys/dev/raidframe/rf_driver.c b/sys/dev/raidframe/rf_driver.c
index 240230e4d64..2b21ea576e4 100644
--- a/sys/dev/raidframe/rf_driver.c
+++ b/sys/dev/raidframe/rf_driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.101 2004/04/22 00:17:12 itojun Exp $ */
+/* $NetBSD: rf_driver.c,v 1.102 2004/06/02 22:58:28 drochner Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -73,7 +73,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.101 2004/04/22 00:17:12 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.102 2004/06/02 22:58:28 drochner Exp $");
#include "opt_raid_diagnostic.h"
@@ -502,7 +502,7 @@ RF_RaidAccessDesc_t *
rf_AllocRaidAccDesc(RF_Raid_t *raidPtr, RF_IoType_t type,
RF_RaidAddr_t raidAddress, RF_SectorCount_t numBlocks,
caddr_t bufPtr, void *bp, RF_RaidAccessFlags_t flags,
- RF_AccessState_t *states)
+ const RF_AccessState_t *states)
{
RF_RaidAccessDesc_t *desc;
diff --git a/sys/dev/raidframe/rf_driver.h b/sys/dev/raidframe/rf_driver.h
index aec4272784a..293cf6589c3 100644
--- a/sys/dev/raidframe/rf_driver.h
+++ b/sys/dev/raidframe/rf_driver.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.h,v 1.11 2004/03/13 02:04:02 oster Exp $ */
+/* $NetBSD: rf_driver.h,v 1.12 2004/06/02 22:58:30 drochner Exp $ */
/*
* rf_driver.h
*/
@@ -46,7 +46,7 @@ RF_RaidAccessDesc_t *rf_AllocRaidAccDesc(RF_Raid_t *, RF_IoType_t,
RF_RaidAddr_t, RF_SectorCount_t,
caddr_t, void *,
RF_RaidAccessFlags_t,
- RF_AccessState_t *);
+ const RF_AccessState_t *);
void rf_FreeRaidAccDesc(RF_RaidAccessDesc_t *);
int rf_DoAccess(RF_Raid_t *, RF_IoType_t, int, RF_RaidAddr_t,
RF_SectorCount_t, caddr_t, void *, RF_RaidAccessFlags_t);