Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm dm: Move extern declaration of global variables t...
details: https://anonhg.NetBSD.org/src/rev/ee13069616b4
branches: trunk
changeset: 466152:ee13069616b4
user: tkusumi <tkusumi%NetBSD.org@localhost>
date: Sat Dec 14 11:20:51 2019 +0000
description:
dm: Move extern declaration of global variables to dm.h
diffstat:
sys/dev/dm/device-mapper.c | 4 +---
sys/dev/dm/dm.h | 5 ++++-
sys/dev/dm/dm_ioctl.c | 5 ++---
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 4b745e1eb5ef -r ee13069616b4 sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c Sat Dec 14 10:59:25 2019 +0000
+++ b/sys/dev/dm/device-mapper.c Sat Dec 14 11:20:51 2019 +0000
@@ -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 @@
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>
diff -r 4b745e1eb5ef -r ee13069616b4 sys/dev/dm/dm.h
--- a/sys/dev/dm/dm.h Sat Dec 14 10:59:25 2019 +0000
+++ b/sys/dev/dm/dm.h Sat Dec 14 11:20:51 2019 +0000
@@ -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.
diff -r 4b745e1eb5ef -r ee13069616b4 sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c Sat Dec 14 10:59:25 2019 +0000
+++ b/sys/dev/dm/dm_ioctl.c Sat Dec 14 11:20:51 2019 +0000
@@ -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 @@
#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 */
Home |
Main Index |
Thread Index |
Old Index