summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_ioctl.c
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2010-02-25 20:48:58 +0000
committerjakllsch <jakllsch@NetBSD.org>2010-02-25 20:48:58 +0000
commit6fc9836341376df9afd22aa37aeaa30141974fe1 (patch)
treee5a26f220341b788f76dcd6560325ef41c8f84a5 /sys/dev/dm/dm_ioctl.c
parent6bbebe48f41a0b6ea3e1352cc6dee01082c17cb2 (diff)
Be sure to config_cfattach_attach() in dmattach().
Loosely based on patch from Brian Brombacher, with other inspriation from vnd(4). This should fix PR kern/42799. While here, a few prototype, style and namespace pollution-related changes.
Diffstat (limited to 'sys/dev/dm/dm_ioctl.c')
-rw-r--r--sys/dev/dm/dm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c
index f053b4a46ef..4e00dbf7a55 100644
--- a/sys/dev/dm/dm_ioctl.c
+++ b/sys/dev/dm/dm_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.20 2010/01/04 00:19:08 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.21 2010/02/25 20:48:58 jakllsch Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
static uint64_t sc_minor_num;
extern const struct dkdriver dmdkdriver;
-uint64_t dev_counter;
+uint64_t dm_dev_counter;
/* Generic cf_data for device-mapper driver */
static struct cfdata dm_cfdata = {
@@ -266,7 +266,7 @@ dm_dev_create_ioctl(prop_dictionary_t dm_dict)
DM_REMOVE_FLAG(flags, DM_INACTIVE_PRESENT_FLAG);
/* Increment device counter After creating device */
- atomic_inc_64(&dev_counter);
+ atomic_inc_64(&dm_dev_counter);
return r;
}