Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/prg-localcount2]: src/sys/dev And a few more DEVSW_MODULE_INIT for modul...



details:   https://anonhg.NetBSD.org/src/rev/8bad2e7458ac
branches:  prg-localcount2
changeset: 823532:8bad2e7458ac
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Apr 30 10:27:16 2017 +0000

description:
And a few more DEVSW_MODULE_INIT for modular drivers

diffstat:

 sys/dev/ata/wd.c  |  6 ++++--
 sys/dev/ic/mlx.c  |  5 +++--
 sys/dev/ic/nvme.c |  5 +++--
 3 files changed, 10 insertions(+), 6 deletions(-)

diffs (86 lines):

diff -r 082acca6e6ea -r 8bad2e7458ac sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Sun Apr 30 10:17:26 2017 +0000
+++ b/sys/dev/ata/wd.c  Sun Apr 30 10:27:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.429 2017/04/24 09:42:52 jdolecek Exp $ */
+/*     $NetBSD: wd.c,v 1.429.2.1 2017/04/30 10:27:16 pgoyette Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.429 2017/04/24 09:42:52 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.429.2.1 2017/04/30 10:27:16 pgoyette Exp $");
 
 #include "opt_ata.h"
 
@@ -143,6 +143,7 @@
 static dev_type_discard(wddiscard);
 
 const struct bdevsw wd_bdevsw = {
+       DEVSW_MODULE_INIT
        .d_open = wdopen,
        .d_close = wdclose,
        .d_strategy = wdstrategy,
@@ -154,6 +155,7 @@
 };
 
 const struct cdevsw wd_cdevsw = {
+       DEVSW_MODULE_INIT
        .d_open = wdopen,
        .d_close = wdclose,
        .d_read = wdread,
diff -r 082acca6e6ea -r 8bad2e7458ac sys/dev/ic/mlx.c
--- a/sys/dev/ic/mlx.c  Sun Apr 30 10:17:26 2017 +0000
+++ b/sys/dev/ic/mlx.c  Sun Apr 30 10:27:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mlx.c,v 1.65 2016/09/27 03:33:32 pgoyette Exp $        */
+/*     $NetBSD: mlx.c,v 1.65.6.1 2017/04/30 10:27:16 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.65 2016/09/27 03:33:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.65.6.1 2017/04/30 10:27:16 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "ld.h"
@@ -132,6 +132,7 @@
 dev_type_ioctl(mlxioctl);
 
 const struct cdevsw mlx_cdevsw = {
+       DEVSW_MODULE_INIT
        .d_open = mlxopen,
        .d_close = mlxclose,
        .d_read = noread,
diff -r 082acca6e6ea -r 8bad2e7458ac sys/dev/ic/nvme.c
--- a/sys/dev/ic/nvme.c Sun Apr 30 10:17:26 2017 +0000
+++ b/sys/dev/ic/nvme.c Sun Apr 30 10:27:16 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvme.c,v 1.26 2017/04/05 20:15:49 jdolecek Exp $       */
+/*     $NetBSD: nvme.c,v 1.26.4.1 2017/04/30 10:27:16 pgoyette Exp $   */
 /*     $OpenBSD: nvme.c,v 1.49 2016/04/18 05:59:50 dlg Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.26 2017/04/05 20:15:49 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.26.4.1 2017/04/30 10:27:16 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1690,6 +1690,7 @@
 dev_type_ioctl(nvmeioctl);
 
 const struct cdevsw nvme_cdevsw = {
+       DEVSW_MODULE_INIT
        .d_open = nvmeopen,
        .d_close = nvmeclose,
        .d_read = noread,



Home | Main Index | Thread Index | Old Index