Source-Changes-HG archive

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

[src/pgoyette-localcount]: src/sys Rename LOCALCOUNT_INITIALIZER to DEVSW_MOD...



details:   https://anonhg.NetBSD.org/src/rev/a95a30887ff5
branches:  pgoyette-localcount
changeset: 852866:a95a30887ff5
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Tue Jul 26 05:54:39 2016 +0000

description:
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

diffstat:

 sys/dev/audio.c                              |   6 +++---
 sys/dev/cgd.c                                |   8 ++++----
 sys/dev/dm/device-mapper.c                   |   6 +++---
 sys/dev/fss.c                                |   8 ++++----
 sys/dev/ld.c                                 |   8 ++++----
 sys/dev/md.c                                 |   8 ++++----
 sys/dev/pad/pad.c                            |   6 +++---
 sys/dev/pci/pci_usrreq.c                     |   6 +++---
 sys/dev/pud/pud_dev.c                        |   8 ++++----
 sys/dev/putter/putter.c                      |   6 +++---
 sys/dev/raidframe/rf_netbsdkintf.c           |   8 ++++----
 sys/dev/rndpseudo.c                          |   6 +++---
 sys/dev/scsipi/cd.c                          |   8 ++++----
 sys/dev/scsipi/sd.c                          |   8 ++++----
 sys/dev/sysmon/sysmon.c                      |   6 +++---
 sys/dev/usb/ucom.c                           |   6 +++---
 sys/dev/usb/ulpt.c                           |   6 +++---
 sys/dev/vnd.c                                |   8 ++++----
 sys/dev/wscons/wskbd.c                       |   6 +++---
 sys/dev/wscons/wsmouse.c                     |   6 +++---
 sys/external/bsd/ipf/netinet/ip_fil_netbsd.c |   6 +++---
 sys/kern/kern_drvctl.c                       |   6 +++---
 sys/kern/tty_ptm.c                           |   8 ++++----
 sys/kern/tty_pty.c                           |   8 ++++----
 sys/kern/tty_tty.c                           |   6 +++---
 sys/net/bpf.c                                |   6 +++---
 sys/net/if_tap.c                             |   6 +++---
 sys/net/npf/npf.c                            |   6 +++---
 sys/netsmb/smb_dev.c                         |   6 +++---
 sys/opencrypto/cryptodev.c                   |   6 +++---
 sys/rump/librump/rumpvfs/devnull.c           |   6 +++---
 sys/rump/librump/rumpvfs/rumpblk.c           |  10 +++++-----
 sys/sys/localcount.h                         |   6 +++---
 33 files changed, 112 insertions(+), 112 deletions(-)

diffs (truncated from 1003 to 300 lines):

diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/audio.c
--- a/sys/dev/audio.c   Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/audio.c   Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.268.2.4 2016/07/26 03:52:14 pgoyette Exp $ */
+/*     $NetBSD: audio.c,v 1.268.2.5 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -155,7 +155,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.268.2.4 2016/07/26 03:52:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.268.2.5 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -348,7 +348,7 @@
 dev_type_kqfilter(audiokqfilter);
 
 const struct cdevsw audio_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = audioopen,
        .d_close = audioclose,
        .d_read = audioread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/cgd.c     Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.108.2.15 2016/07/26 03:24:20 pgoyette Exp $ */
+/* $NetBSD: cgd.c,v 1.108.2.16 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.108.2.15 2016/07/26 03:24:20 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.108.2.16 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -72,7 +72,7 @@
 static dev_type_size(cgdsize);
 
 const struct bdevsw cgd_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = cgdopen,
        .d_close = cgdclose,
        .d_strategy = cgdstrategy,
@@ -84,7 +84,7 @@
 };
 
 const struct cdevsw cgd_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = cgdopen,
        .d_close = cgdclose,
        .d_read = cgdread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c        Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/dm/device-mapper.c        Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: device-mapper.c,v 1.38.2.2 2016/07/19 06:26:59 pgoyette Exp $ */
+/*        $NetBSD: device-mapper.c,v 1.38.2.3 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
 /* ***Variable-definitions*** */
 
 const struct bdevsw dm_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = dmopen,
        .d_close = dmclose,
        .d_strategy = dmstrategy,
@@ -92,7 +92,7 @@
 };
 
 const struct cdevsw dm_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = dmopen,
        .d_close = dmclose,
        .d_read = dmread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/fss.c
--- a/sys/dev/fss.c     Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/fss.c     Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fss.c,v 1.93.2.2 2016/07/19 06:26:58 pgoyette Exp $    */
+/*     $NetBSD: fss.c,v 1.93.2.3 2016/07/26 05:54:39 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.93.2.2 2016/07/19 06:26:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.93.2.3 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -100,7 +100,7 @@
 };
 
 const struct bdevsw fss_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = fss_open,
        .d_close = fss_close,
        .d_strategy = fss_strategy,
@@ -112,7 +112,7 @@
 };
 
 const struct cdevsw fss_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = fss_open,
        .d_close = fss_close,
        .d_read = fss_read,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/ld.c
--- a/sys/dev/ld.c      Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/ld.c      Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ld.c,v 1.94.2.2 2016/07/19 06:26:58 pgoyette Exp $     */
+/*     $NetBSD: ld.c,v 1.94.2.3 2016/07/26 05:54:39 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.94.2.2 2016/07/19 06:26:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld.c,v 1.94.2.3 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -85,7 +85,7 @@
 static dev_type_discard(lddiscard);
 
 const struct bdevsw ld_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = ldopen,
        .d_close = ldclose,
        .d_strategy = ldstrategy,
@@ -97,7 +97,7 @@
 };
 
 const struct cdevsw ld_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = ldopen,
        .d_close = ldclose,
        .d_read = ldread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/md.c
--- a/sys/dev/md.c      Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/md.c      Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.76.2.2 2016/07/19 06:26:58 pgoyette Exp $     */
+/*     $NetBSD: md.c,v 1.76.2.3 2016/07/26 05:54:39 pgoyette Exp $     */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.76.2.2 2016/07/19 06:26:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.76.2.3 2016/07/26 05:54:39 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_md.h"
@@ -107,7 +107,7 @@
 static dev_type_size(mdsize);
 
 const struct bdevsw md_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = mdopen,
        .d_close = mdclose,
        .d_strategy = mdstrategy,
@@ -119,7 +119,7 @@
 };
 
 const struct cdevsw md_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = mdopen,
        .d_close = mdclose,
        .d_read = mdread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/pad/pad.c Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.25.2.3 2016/07/19 06:26:59 pgoyette Exp $ */
+/* $NetBSD: pad.c,v 1.25.2.4 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.25.2.3 2016/07/19 06:26:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.25.2.4 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -131,7 +131,7 @@
 dev_type_read(pad_read);
 
 const struct cdevsw pad_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = pad_open,
        .d_close = pad_close,
        .d_read = pad_read,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/pci/pci_usrreq.c
--- a/sys/dev/pci/pci_usrreq.c  Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/pci/pci_usrreq.c  Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_usrreq.c,v 1.29.2.2 2016/07/19 06:26:59 pgoyette Exp $     */
+/*     $NetBSD: pci_usrreq.c,v 1.29.2.3 2016/07/26 05:54:39 pgoyette Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_usrreq.c,v 1.29.2.2 2016/07/19 06:26:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_usrreq.c,v 1.29.2.3 2016/07/26 05:54:39 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -186,7 +186,7 @@
 }
 
 const struct cdevsw pci_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open = pciopen,
        .d_close = nullclose,
        .d_read = noread,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/pud/pud_dev.c
--- a/sys/dev/pud/pud_dev.c     Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/pud/pud_dev.c     Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pud_dev.c,v 1.7.2.3 2016/07/19 06:26:59 pgoyette Exp $ */
+/*     $NetBSD: pud_dev.c,v 1.7.2.4 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2007  Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pud_dev.c,v 1.7.2.3 2016/07/19 06:26:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pud_dev.c,v 1.7.2.4 2016/07/26 05:54:39 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -100,7 +100,7 @@
 #endif
 
 struct bdevsw pud_bdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open         = pud_bdev_open,
        .d_close        = pud_bdev_close,
        .d_strategy     = pud_bdev_strategy,
@@ -200,7 +200,7 @@
 static dev_type_kqfilter(pud_cdev_kqfilter);
 
 struct cdevsw pud_cdevsw = {
-       LOCALCOUNT_INITIALIZER
+       DEVSW_MODULE_INIT
        .d_open         = pud_cdev_open,
        .d_close        = pud_cdev_close,
        .d_read         = pud_cdev_read,
diff -r 1b999ba33ee5 -r a95a30887ff5 sys/dev/putter/putter.c
--- a/sys/dev/putter/putter.c   Tue Jul 26 04:30:50 2016 +0000
+++ b/sys/dev/putter/putter.c   Tue Jul 26 05:54:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: putter.c,v 1.35.8.2 2016/07/19 06:26:59 pgoyette Exp $ */
+/*     $NetBSD: putter.c,v 1.35.8.3 2016/07/26 05:54:39 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 



Home | Main Index | Thread Index | Old Index