summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vinum/vinumutil.c')
-rw-r--r--sys/dev/vinum/vinumutil.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/vinum/vinumutil.c b/sys/dev/vinum/vinumutil.c
index f597cd7..f63bbd7 100644
--- a/sys/dev/vinum/vinumutil.c
+++ b/sys/dev/vinum/vinumutil.c
@@ -243,12 +243,17 @@ sizespec(char *spec)
return -1;
}
+#ifdef _KERNEL
+#define FOOTYPE struct cdev *
+#else
+#define FOOTYPE dev_t
+#endif
/*
* Extract the volume number from a device number. Check that it's
* the correct type, and that it isn't one of the superdevs.
*/
int
-Volno(dev_t dev)
+Volno(FOOTYPE dev)
{
int volno = minor(dev);
@@ -269,7 +274,7 @@ Volno(dev_t dev)
* type. Return -1 for invalid types.
*/
int
-Plexno(dev_t dev)
+Plexno(FOOTYPE dev)
{
int plexno = minor(dev);
@@ -285,7 +290,7 @@ Plexno(dev_t dev)
* type. Return -1 for invalid types.
*/
int
-Sdno(dev_t dev)
+Sdno(FOOTYPE dev)
{
int sdno = minor(dev);
OpenPOWER on IntegriCloud