Module Name:    src
Committed By:   tkusumi
Date:           Tue Dec 31 10:30:30 UTC 2019

Modified Files:
        src/sys/dev/dm: dm_dev.c dm_table.c

Log Message:
dm: Remove unnecessary inlining

These two don't really need to be inlined.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_dev.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/dm/dm_table.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/dm_dev.c
diff -u src/sys/dev/dm/dm_dev.c:1.16 src/sys/dev/dm/dm_dev.c:1.17
--- src/sys/dev/dm/dm_dev.c:1.16	Sun Dec 15 14:39:42 2019
+++ src/sys/dev/dm/dm_dev.c	Tue Dec 31 10:30:30 2019
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_dev.c,v 1.16 2019/12/15 14:39:42 tkusumi Exp $      */
+/*        $NetBSD: dm_dev.c,v 1.17 2019/12/31 10:30:30 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_dev.c,v 1.16 2019/12/15 14:39:42 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_dev.c,v 1.17 2019/12/31 10:30:30 tkusumi Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -51,7 +51,7 @@ static struct dm_dev_head dm_dev_list = 
 static kmutex_t dm_dev_mutex;
 
 /* dm_dev_mutex must be holdby caller before using disable_dev. */
-__inline static void
+static void
 disable_dev(dm_dev_t *dmv)
 {
 

Index: src/sys/dev/dm/dm_table.c
diff -u src/sys/dev/dm/dm_table.c:1.18 src/sys/dev/dm/dm_table.c:1.19
--- src/sys/dev/dm/dm_table.c:1.18	Sun Dec 22 13:16:09 2019
+++ src/sys/dev/dm/dm_table.c	Tue Dec 31 10:30:30 2019
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_table.c,v 1.18 2019/12/22 13:16:09 tkusumi Exp $      */
+/*        $NetBSD: dm_table.c,v 1.19 2019/12/31 10:30:30 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_table.c,v 1.18 2019/12/22 13:16:09 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_table.c,v 1.19 2019/12/31 10:30:30 tkusumi Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -181,7 +181,7 @@ dm_table_destroy(dm_table_head_t *head, 
 /*
  * Return length of active table in device.
  */
-static inline uint64_t
+static uint64_t
 dm_table_size_impl(dm_table_head_t *head, int table)
 {
 	dm_table_t *tbl;

Reply via email to