Module Name: src
Committed By: tkusumi
Date: Sat Dec 14 11:20:51 UTC 2019
Modified Files:
src/sys/dev/dm: device-mapper.c dm.h dm_ioctl.c
Log Message:
dm: Move extern declaration of global variables to dm.h
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/dm/dm.h
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/dm/dm_ioctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dm/device-mapper.c
diff -u src/sys/dev/dm/device-mapper.c:1.50 src/sys/dev/dm/device-mapper.c:1.51
--- src/sys/dev/dm/device-mapper.c:1.50 Sat Dec 14 10:49:30 2019
+++ src/sys/dev/dm/device-mapper.c Sat Dec 14 11:20:51 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: device-mapper.c,v 1.50 2019/12/14 10:49:30 tkusumi Exp $ */
+/* $NetBSD: device-mapper.c,v 1.51 2019/12/14 11:20:51 tkusumi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -111,8 +111,6 @@ CFATTACH_DECL3_NEW(dm, 0,
dm_match, dm_attach, dm_detach, NULL, NULL, NULL,
DVF_DETACH_SHUTDOWN);
-extern uint32_t dm_dev_counter;
-
/*
* This structure is used to translate command sent to kernel driver in
* <key>command</key>
Index: src/sys/dev/dm/dm.h
diff -u src/sys/dev/dm/dm.h:1.39 src/sys/dev/dm/dm.h:1.40
--- src/sys/dev/dm/dm.h:1.39 Thu Dec 12 16:28:24 2019
+++ src/sys/dev/dm/dm.h Sat Dec 14 11:20:51 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: dm.h,v 1.39 2019/12/12 16:28:24 tkusumi Exp $ */
+/* $NetBSD: dm.h,v 1.40 2019/12/14 11:20:51 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -65,6 +65,9 @@
/*** Internal device-mapper structures ***/
+extern const struct dkdriver dmdkdriver;
+extern uint32_t dm_dev_counter;
+
/*
* A device mapper table is a list of physical ranges plus the mapping target
* applied to them.
Index: src/sys/dev/dm/dm_ioctl.c
diff -u src/sys/dev/dm/dm_ioctl.c:1.41 src/sys/dev/dm/dm_ioctl.c:1.42
--- src/sys/dev/dm/dm_ioctl.c:1.41 Thu Dec 12 16:28:24 2019
+++ src/sys/dev/dm/dm_ioctl.c Sat Dec 14 11:20:51 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.41 2019/12/12 16:28:24 tkusumi Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.42 2019/12/14 11:20:51 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.41 2019/12/12 16:28:24 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.42 2019/12/14 11:20:51 tkusumi Exp $");
/*
* Locking is used to synchronise between ioctl calls and between dm_table's
@@ -95,7 +95,6 @@ __KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v
#include "dm.h"
static uint32_t sc_minor_num;
-extern const struct dkdriver dmdkdriver;
uint32_t dm_dev_counter;
/* Generic cf_data for device-mapper driver */