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: Remove unnecessary inlining



details:   https://anonhg.NetBSD.org/src/rev/8aea4a1188a4
branches:  trunk
changeset: 466693:8aea4a1188a4
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Tue Dec 31 10:30:30 2019 +0000

description:
dm: Remove unnecessary inlining

These two don't really need to be inlined.

diffstat:

 sys/dev/dm/dm_dev.c   |  6 +++---
 sys/dev/dm/dm_table.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r eba32d768cd4 -r 8aea4a1188a4 sys/dev/dm/dm_dev.c
--- a/sys/dev/dm/dm_dev.c       Tue Dec 31 09:10:15 2019 +0000
+++ b/sys/dev/dm/dm_dev.c       Tue Dec 31 10:30:30 2019 +0000
@@ -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 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)
 {
 
diff -r eba32d768cd4 -r 8aea4a1188a4 sys/dev/dm/dm_table.c
--- a/sys/dev/dm/dm_table.c     Tue Dec 31 09:10:15 2019 +0000
+++ b/sys/dev/dm/dm_table.c     Tue Dec 31 10:30:30 2019 +0000
@@ -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 @@
 /*
  * 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;



Home | Main Index | Thread Index | Old Index