summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2019-01-29 09:28:50 +0000
committerpgoyette <pgoyette@NetBSD.org>2019-01-29 09:28:50 +0000
commit314d436d3888cd3d69577d7d301b86589df7c3a3 (patch)
treed5de3e7c4a611da0b529d550fc39edef967f82fb /sys/dev/raidframe
parent94e76cb2d8e636f0fa6b7d402f527c7cfba2f827 (diff)
Normalize all the compat hooks' names to the form
<subsystem>_<function>_<version>_hook NFCI XXX Note that although this introduces a change in the kernel-to- XXX module interface, we are NOT bumping the kernel version number. XXX We will bump the version number once the interface stabilizes.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_compat50.c6
-rw-r--r--sys/dev/raidframe/rf_compat80.c6
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/raidframe/rf_compat50.c b/sys/dev/raidframe/rf_compat50.c
index 108385a5481..71401cfbb35 100644
--- a/sys/dev/raidframe/rf_compat50.c
+++ b/sys/dev/raidframe/rf_compat50.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_compat50.c,v 1.4 2019/01/27 02:08:42 pgoyette Exp $ */
+/* $NetBSD: rf_compat50.c,v 1.5 2019/01/29 09:28:50 pgoyette Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -244,14 +244,14 @@ void
raidframe_50_init(void)
{
- MODULE_SET_HOOK(raidframe50_ioctl_hook, "raid50", raidframe_ioctl_50);
+ MODULE_SET_HOOK(raidframe_ioctl_50_hook, "raid50", raidframe_ioctl_50);
}
void
raidframe_50_fini(void)
{
- MODULE_UNSET_HOOK(raidframe50_ioctl_hook);
+ MODULE_UNSET_HOOK(raidframe_ioctl_50_hook);
}
MODULE(MODULE_CLASS_EXEC, compat_raid_50, "raid,compat_50,compat_raid_80");
diff --git a/sys/dev/raidframe/rf_compat80.c b/sys/dev/raidframe/rf_compat80.c
index b6a204b41e4..2692557530e 100644
--- a/sys/dev/raidframe/rf_compat80.c
+++ b/sys/dev/raidframe/rf_compat80.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_compat80.c,v 1.3 2019/01/27 02:08:42 pgoyette Exp $ */
+/* $NetBSD: rf_compat80.c,v 1.4 2019/01/29 09:28:50 pgoyette Exp $ */
/*
* Copyright (c) 2017 Matthew R. Green
@@ -269,14 +269,14 @@ void
raidframe_80_init(void)
{
- MODULE_SET_HOOK(raidframe80_ioctl_hook, "raid80", raidframe_ioctl_80);
+ MODULE_SET_HOOK(raidframe_ioctl_80_hook, "raid80", raidframe_ioctl_80);
}
void
raidframe_80_fini(void)
{
- MODULE_UNSET_HOOK(raidframe80_ioctl_hook);
+ MODULE_UNSET_HOOK(raidframe_ioctl_80_hook);
}
MODULE(MODULE_CLASS_EXEC, compat_raid_80, "raid,compat_80");
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index d5b6f3431b7..115041204ff 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.359 2019/01/28 21:14:08 bad Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.360 2019/01/29 09:28:50 pgoyette Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.359 2019/01/28 21:14:08 bad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.360 2019/01/29 09:28:50 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1132,7 +1132,7 @@ raidioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
* * If compat code returns EAGAIN, we need to finish via config
* * Otherwise the cmd has been handled and we just return
*/
- MODULE_CALL_HOOK(raidframe50_ioctl_hook,
+ MODULE_CALL_HOOK(raidframe_ioctl_50_hook,
(cmd, (rs->sc_flags & RAIDF_INITED),raidPtr, unit, data, &k_cfg),
enosys(), retcode);
if (retcode == ENOSYS)
@@ -1142,7 +1142,7 @@ raidioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
else if (retcode != EPASSTHROUGH)
return retcode;
- MODULE_CALL_HOOK(raidframe80_ioctl_hook,
+ MODULE_CALL_HOOK(raidframe_ioctl_80_hook,
(cmd, (rs->sc_flags & RAIDF_INITED),raidPtr, unit, data, &k_cfg),
enosys(), retcode);
if (retcode == ENOSYS)