Source-Changes-HG archive

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

[src/trunk]: src/sys Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as ...



details:   https://anonhg.NetBSD.org/src/rev/dc3a1f0be68a
branches:  trunk
changeset: 449275:dc3a1f0be68a
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Mar 01 11:06:55 2019 +0000

description:
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

diffstat:

 sys/arch/amd64/amd64/netbsd32_machdep.c        |  10 ++++----
 sys/arch/amd64/amd64/netbsd32_machdep_16.c     |   8 +++---
 sys/arch/amd64/conf/GENERIC                    |   6 ++--
 sys/arch/mips/mips/netbsd32_machdep.c          |  10 ++++----
 sys/arch/mips/mips/netbsd32_machdep_16.c       |   8 +++---
 sys/arch/sparc/fpu/fpu.c                       |   6 ++--
 sys/arch/sparc64/sparc64/netbsd32_machdep.c    |  10 ++++----
 sys/arch/sparc64/sparc64/netbsd32_machdep_16.c |   8 +++---
 sys/compat/common/bio_30.c                     |   8 +++---
 sys/compat/common/ccd_60.c                     |   8 +++---
 sys/compat/common/clockctl_50.c                |   8 +++---
 sys/compat/common/compat_sysv_50_mod.c         |   8 +++---
 sys/compat/common/ieee80211_20.c               |   8 +++---
 sys/compat/common/if43_20.c                    |   8 +++---
 sys/compat/common/if_43.c                      |  14 +++++-----
 sys/compat/common/if_spppsubr50.c              |   8 +++---
 sys/compat/common/kern_mod_80.c                |   8 +++---
 sys/compat/common/rndpseudo_50.c               |   8 +++---
 sys/compat/common/rtsock_14.c                  |  12 ++++----
 sys/compat/common/rtsock_50.c                  |  32 +++++++++++++-------------
 sys/compat/common/rtsock_70.c                  |  12 ++++----
 sys/compat/common/sysmon_power_40.c            |   8 +++---
 sys/compat/common/tty_43.c                     |   8 +++---
 sys/compat/common/tty_60.c                     |  12 ++++----
 sys/compat/common/uipc_syscalls_40.c           |   8 +++---
 sys/compat/common/uipc_syscalls_50.c           |   6 ++--
 sys/compat/common/uipc_usrreq_70.c             |   8 +++---
 sys/compat/common/usb_subr_30.c                |  12 ++++----
 sys/compat/common/vfs_syscalls_10.c            |   8 +++---
 sys/compat/common/vnd_30.c                     |   8 +++---
 sys/compat/common/vnd_50.c                     |   8 +++---
 sys/compat/linux/common/linux_exec_elf32.c     |   6 ++--
 sys/compat/netbsd32/netbsd32_compat_50.c       |   8 +++---
 sys/compat/netbsd32/netbsd32_compat_80.c       |   8 +++---
 sys/compat/netbsd32/netbsd32_exec_elf32.c      |   6 ++--
 sys/compat/netbsd32/netbsd32_kern_proc.c       |  12 ++++----
 sys/compat/netbsd32/netbsd32_module.c          |   6 ++--
 sys/compat/sunos/sunos_mod.c                   |   8 +++---
 sys/compat/sunos32/sunos32_mod.c               |   8 +++---
 sys/dev/bio.c                                  |   6 ++--
 sys/dev/ccd.c                                  |   8 +++---
 sys/dev/clockctl.c                             |   6 ++--
 sys/dev/raidframe/rf_compat32.c                |   6 ++--
 sys/dev/raidframe/rf_compat50.c                |   6 ++--
 sys/dev/raidframe/rf_compat80.c                |   6 ++--
 sys/dev/raidframe/rf_netbsdkintf.c             |  10 ++++----
 sys/dev/sysmon/sysmon_power.c                  |   6 ++--
 sys/dev/usb/ugen.c                             |   6 ++--
 sys/dev/usb/uhid.c                             |   6 ++--
 sys/dev/usb/usb.c                              |   8 +++---
 sys/dev/vnd.c                                  |   8 +++---
 sys/dev/wscons/wsevent.c                       |   6 ++--
 sys/dev/wscons/wsevent_50.c                    |   8 +++---
 sys/fs/puffs/puffs_compat.c                    |  12 ++++----
 sys/fs/puffs/puffs_msgif.c                     |   8 +++---
 sys/kern/kern_proc.c                           |   8 +++---
 sys/kern/kern_rndq.c                           |   8 +++---
 sys/kern/sys_module.c                          |   6 ++--
 sys/kern/sysv_ipc.c                            |   6 ++--
 sys/kern/tty.c                                 |   8 +++---
 sys/kern/tty_ptm.c                             |   6 ++--
 sys/kern/uipc_usrreq.c                         |   8 +++---
 sys/kern/vfs_syscalls.c                        |   6 ++--
 sys/net/if.c                                   |  14 +++++-----
 sys/net/if_spppsubr.c                          |   6 ++--
 sys/net/rtsock.c                               |  10 ++++----
 sys/net/rtsock_shared.c                        |  12 ++++----
 sys/net80211/ieee80211_ioctl.c                 |   4 +-
 sys/opencrypto/cryptodev.c                     |   6 ++--
 sys/opencrypto/ocryptodev.c                    |   8 +++---
 sys/sys/module_hook.h                          |  10 ++++----
 71 files changed, 299 insertions(+), 299 deletions(-)

diffs (truncated from 2397 to 300 lines):

diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c   Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c   Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.118 2019/01/27 02:08:37 pgoyette Exp $  */
+/*     $NetBSD: netbsd32_machdep.c,v 1.119 2019/03/01 11:06:55 pgoyette Exp $  */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.118 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.119 2019/03/01 11:06:55 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -280,7 +280,7 @@
 netbsd32_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
 {
 
-       MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook, (ksi, mask),
+       MODULE_HOOK_CALL_VOID(netbsd32_sendsig_hook, (ksi, mask),
            netbsd32_sendsig_siginfo(ksi, mask));
 }
 
@@ -981,12 +981,12 @@
 netbsd32_machdep_md_init(void)
 {
 
-       MODULE_SET_HOOK(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
+       MODULE_HOOK_SET(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
 }
 
 void
 netbsd32_machdep_md_fini(void)
 {
 
-       MODULE_UNSET_HOOK(netbsd32_machine32_hook);
+       MODULE_HOOK_UNSET(netbsd32_machine32_hook);
 }
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/amd64/amd64/netbsd32_machdep_16.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep_16.c        Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep_16.c        Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -251,12 +251,12 @@
 netbsd32_machdep_md_16_init(void)
 {
 
-       MODULE_SET_HOOK(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16);
+       MODULE_HOOK_SET(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16);
 }
 
 void
 netbsd32_machdep_md_16_fini(void)
 {
 
-       MODULE_UNSET_HOOK(netbsd32_sendsig_hook);
+       MODULE_HOOK_UNSET(netbsd32_sendsig_hook);
 }
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/amd64/conf/GENERIC
--- a/sys/arch/amd64/conf/GENERIC       Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/amd64/conf/GENERIC       Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.518 2019/03/01 08:17:51 nonaka Exp $
+# $NetBSD: GENERIC,v 1.519 2019/03/01 11:06:55 pgoyette Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident         "GENERIC-$Revision: 1.518 $"
+#ident         "GENERIC-$Revision: 1.519 $"
 
 maxusers       64              # estimated number of users
 
@@ -1092,7 +1092,7 @@
 hvheartbeat*   at vmbus?               # Hyper-V Heartbeat Service
 hvshutdown*    at vmbus?               # Hyper-V Geust Shutdown Service
 hvtimesync*    at vmbus?               # Hyper-V Time Synchronization Service
-hvkvp*         at vmbus?               # Hyper-V Data Exchange Service
+#hvkvp*                at vmbus?               # Hyper-V Data Exchange Service
 
 # Pull in optional local configuration
 cinclude "arch/amd64/conf/GENERIC.local"
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/mips/mips/netbsd32_machdep.c
--- a/sys/arch/mips/mips/netbsd32_machdep.c     Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/mips/mips/netbsd32_machdep.c     Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.17 2019/01/27 02:08:38 pgoyette Exp $   */
+/*     $NetBSD: netbsd32_machdep.c,v 1.18 2019/03/01 11:06:55 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.17 2019/01/27 02:08:38 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.18 2019/03/01 11:06:55 pgoyette Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_coredump.h"
@@ -314,7 +314,7 @@
 netbsd32_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
 {
 
-       MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook, (ksi, mask),  
+       MODULE_HOOK_CALL_VOID(netbsd32_sendsig_hook, (ksi, mask),  
            netbsd32_sendsig_siginfo(ksi, mask));
 }
 
@@ -329,14 +329,14 @@
 netbsd32_machdep_md_init(void) 
 {
 
-       MODULE_SET_HOOK(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
+       MODULE_HOOK_SET(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
 }
 
 void
 netbsd32_machdep_md_fini(void)
 {
 
-       MODULE_UNSET_HOOK(netbsd32_machine32_hook);
+       MODULE_HOOK_UNSET(netbsd32_machine32_hook);
 }
 
 
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/mips/mips/netbsd32_machdep_16.c
--- a/sys/arch/mips/mips/netbsd32_machdep_16.c  Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/mips/mips/netbsd32_machdep_16.c  Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:38 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:38 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_coredump.h"
@@ -99,12 +99,12 @@
 netbsd32_machdep_md_16_init(void)
 {       
                 
-       MODULE_SET_HOOK(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16); 
+       MODULE_HOOK_SET(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16); 
 }               
                 
 void            
 netbsd32_machdep_md_16_fini(void)
 {       
 
-       MODULE_UNSET_HOOK(netbsd32_sendsig_hook);
+       MODULE_HOOK_UNSET(netbsd32_sendsig_hook);
 }
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/sparc/fpu/fpu.c
--- a/sys/arch/sparc/fpu/fpu.c  Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/sparc/fpu/fpu.c  Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.28 2019/01/27 02:08:38 pgoyette Exp $ */
+/*     $NetBSD: fpu.c,v 1.29 2019/03/01 11:06:55 pgoyette Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.28 2019/01/27 02:08:38 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.29 2019/03/01 11:06:55 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -144,7 +144,7 @@
        int ret;
        const struct emul *sunos_emul;
 
-       MODULE_CALL_HOOK(get_emul_sunos_hook, (&sunos_emul), enosys(), ret);
+       MODULE_HOOK_CALL(get_emul_sunos_hook, (&sunos_emul), enosys(), ret);
 
        if (ret == 0 && p->p_emul == sunos_emul)
                fpu_codes = fpu_codes_sunos;
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep.c,v 1.112 2019/01/27 02:08:38 pgoyette Exp $  */
+/*     $NetBSD: netbsd32_machdep.c,v 1.113 2019/03/01 11:06:55 pgoyette Exp $  */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.112 2019/01/27 02:08:38 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.113 2019/03/01 11:06:55 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -267,7 +267,7 @@
 netbsd32_sendsig(const ksiginfo_t *ksi, const sigset_t *mask)
 {
 
-       MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook, (ksi, mask),
+       MODULE_HOOK_CALL_VOID(netbsd32_sendsig_hook, (ksi, mask),
            netbsd32_sendsig_siginfo(ksi, mask));
 }
 
@@ -1028,12 +1028,12 @@
 netbsd32_machdep_md_init(void) 
 {
 
-       MODULE_SET_HOOK(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
+       MODULE_HOOK_SET(netbsd32_machine32_hook, "mach32", netbsd32_machine32);
 }
 
 void
 netbsd32_machdep_md_fini(void)
 {
 
-       MODULE_UNSET_HOOK(netbsd32_machine32_hook);
+       MODULE_HOOK_UNSET(netbsd32_machine32_hook);
 }
diff -r 68cd856b7209 -r dc3a1f0be68a sys/arch/sparc64/sparc64/netbsd32_machdep_16.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep_16.c    Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep_16.c    Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:38 pgoyette Exp $ */
+/*     $NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.2 2019/01/27 02:08:38 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_16.c,v 1.3 2019/03/01 11:06:55 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -352,12 +352,12 @@
 netbsd32_machdep_md_16_init(void)
 {
 
-       MODULE_SET_HOOK(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16);
+       MODULE_HOOK_SET(netbsd32_sendsig_hook, "nb32_16", netbsd32_sendsig_16);
 }
  
 void    
 netbsd32_machdep_md_16_fini(void)  
 {
         
-       MODULE_UNSET_HOOK(netbsd32_sendsig_hook);
+       MODULE_HOOK_UNSET(netbsd32_sendsig_hook);
 }
diff -r 68cd856b7209 -r dc3a1f0be68a sys/compat/common/bio_30.c
--- a/sys/compat/common/bio_30.c        Fri Mar 01 10:02:33 2019 +0000
+++ b/sys/compat/common/bio_30.c        Fri Mar 01 11:06:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bio_30.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $ */
+/*     $NetBSD: bio_30.c,v 1.3 2019/03/01 11:06:56 pgoyette Exp $ */
 /*     $OpenBSD: bio.c,v 1.9 2007/03/20 02:35:55 marco Exp $   */
 
 /*
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bio_30.c,v 1.2 2019/01/27 02:08:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bio_30.c,v 1.3 2019/03/01 11:06:56 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -96,12 +96,12 @@



Home | Main Index | Thread Index | Old Index