diff options
| author | christos <christos@NetBSD.org> | 2019-10-10 03:43:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2019-10-10 03:43:59 +0000 |
| commit | 9272c73468bdffa4fc762a5644c8422c1a732028 (patch) | |
| tree | fb9a4f55c6c6a2bc4bec8a5b3cafad08a84a017a /sys/dev/raidframe/rf_diskqueue.c | |
| parent | 31f7820d5afa7b46463906b36d24bae5090f5cd0 (diff) | |
fix the function pointer and callback mess:
- callback functions return 0 and their result is not checked; make them void.
- there are two types of callbacks and they used to overload their parameters
and the callback structure; separate them into "function" and "value"
callbacks.
- make the wait function signature consistent.
Diffstat (limited to 'sys/dev/raidframe/rf_diskqueue.c')
| -rw-r--r-- | sys/dev/raidframe/rf_diskqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_diskqueue.c b/sys/dev/raidframe/rf_diskqueue.c index 14e5f2b4297..356bda0da59 100644 --- a/sys/dev/raidframe/rf_diskqueue.c +++ b/sys/dev/raidframe/rf_diskqueue.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_diskqueue.c,v 1.55 2019/02/10 17:13:33 christos Exp $ */ +/* $NetBSD: rf_diskqueue.c,v 1.56 2019/10/10 03:43:59 christos Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -66,7 +66,7 @@ ****************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.55 2019/02/10 17:13:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.56 2019/10/10 03:43:59 christos Exp $"); #include <dev/raidframe/raidframevar.h> @@ -360,7 +360,7 @@ rf_CreateDiskQueueData(RF_IoType_t typ, RF_SectorNum_t ssect, RF_SectorCount_t nsect, void *bf, RF_StripeNum_t parityStripeID, RF_ReconUnitNum_t which_ru, - int (*wakeF) (void *, int), void *arg, + void (*wakeF) (void *, int), void *arg, RF_AccTraceEntry_t *tracerec, RF_Raid_t *raidPtr, RF_DiskQueueDataFlags_t flags, void *kb_proc, int waitflag) |
