Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys No need to declare the hook_call() function fo...
details: https://anonhg.NetBSD.org/src/rev/6e5850345feb
branches: pgoyette-compat
changeset: 447685:6e5850345feb
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jan 21 06:49:27 2019 +0000
description:
No need to declare the hook_call() function for void hooks. So
remove and simplify.
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep.c | 6 +++---
sys/arch/mips/mips/netbsd32_machdep.c | 6 +++---
sys/arch/sparc64/sparc64/netbsd32_machdep.c | 6 +++---
sys/dev/sysmon/sysmon_power.c | 6 +++---
sys/fs/puffs/puffs_msgif.c | 6 +++---
sys/kern/kern_proc.c | 6 +++---
sys/net/rtsock.c | 20 ++++++++++----------
sys/net/rtsock_shared.c | 20 ++++++++++----------
sys/sys/module_hook.h | 6 +-----
9 files changed, 39 insertions(+), 43 deletions(-)
diffs (truncated from 321 to 300 lines):
diff -r 5e382cb3910b -r 6e5850345feb sys/arch/amd64/amd64/netbsd32_machdep.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.115.2.14 2019/01/14 13:34:26 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.115.2.15 2019/01/21 06:49:27 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.115.2.14 2019/01/14 13:34:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.115.2.15 2019/01/21 06:49:27 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -275,7 +275,7 @@
struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
-MODULE_CALL_VOID_HOOK_DECL(netbsd32_sendsig_hook,
+MODULE_CALL_HOOK_DECL(netbsd32_sendsig_hook, void,
(const ksiginfo_t *ksi, const sigset_t *mask));
MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook,
(const ksiginfo_t *ksi, const sigset_t *mask), (ksi, mask),
diff -r 5e382cb3910b -r 6e5850345feb sys/arch/mips/mips/netbsd32_machdep.c
--- a/sys/arch/mips/mips/netbsd32_machdep.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/arch/mips/mips/netbsd32_machdep.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.15.2.10 2019/01/14 13:34:26 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.15.2.11 2019/01/21 06:49:27 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.15.2.10 2019/01/14 13:34:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15.2.11 2019/01/21 06:49:27 pgoyette Exp $");
#include "opt_compat_netbsd.h"
#include "opt_coredump.h"
@@ -309,7 +309,7 @@
struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
-MODULE_CALL_VOID_HOOK_DECL(netbsd32_sendsig_hook,
+MODULE_CALL_HOOK_DECL(netbsd32_sendsig_hook, void,
(const ksiginfo_t *ksi, const sigset_t *mask));
MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook,
(const ksiginfo_t *ksi, const sigset_t *mask), (ksi, mask),
diff -r 5e382cb3910b -r 6e5850345feb sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.110.14.3 2019/01/14 13:34:26 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.110.14.4 2019/01/21 06:49:27 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.110.14.3 2019/01/14 13:34:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.110.14.4 2019/01/21 06:49:27 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -262,7 +262,7 @@
struct netbsd32_sendsig_hook_t netbsd32_sendsig_hook;
-MODULE_CALL_VOID_HOOK_DECL(netbsd32_sendsig_hook,
+MODULE_CALL_HOOK_DECL(netbsd32_sendsig_hook, void,
(const ksiginfo_t *ksi, const sigset_t *mask));
MODULE_CALL_VOID_HOOK(netbsd32_sendsig_hook,
(const ksiginfo_t *ksi, const sigset_t *mask), (ksi, mask),
diff -r 5e382cb3910b -r 6e5850345feb sys/dev/sysmon/sysmon_power.c
--- a/sys/dev/sysmon/sysmon_power.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/dev/sysmon/sysmon_power.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_power.c,v 1.58.2.7 2019/01/14 13:34:27 pgoyette Exp $ */
+/* $NetBSD: sysmon_power.c,v 1.58.2.8 2019/01/21 06:49:28 pgoyette Exp $ */
/*-
* Copyright (c) 2007 Juan Romero Pardines.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.58.2.7 2019/01/14 13:34:27 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.58.2.8 2019/01/21 06:49:28 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -318,7 +318,7 @@
/*
* Call the compat hook function
*/
-MODULE_CALL_VOID_HOOK_DECL(compat_sysmon_power_40_hook,
+MODULE_CALL_HOOK_DECL(compat_sysmon_power_40_hook, void,
(power_event_t *pev, struct sysmon_pswitch *pswitch, int event));
MODULE_CALL_VOID_HOOK(compat_sysmon_power_40_hook,
(power_event_t *pev, struct sysmon_pswitch *pswitch, int event),
diff -r 5e382cb3910b -r 6e5850345feb sys/fs/puffs/puffs_msgif.c
--- a/sys/fs/puffs/puffs_msgif.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/fs/puffs/puffs_msgif.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: puffs_msgif.c,v 1.101.10.9 2019/01/18 00:01:01 pgoyette Exp $ */
+/* $NetBSD: puffs_msgif.c,v 1.101.10.10 2019/01/21 06:49:28 pgoyette Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.101.10.9 2019/01/18 00:01:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_msgif.c,v 1.101.10.10 2019/01/21 06:49:28 pgoyette Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -332,7 +332,7 @@
(oreq, creqp, deltap), enosys());
/* Incoming */
-MODULE_CALL_VOID_HOOK_DECL(puffs_50_in_hook,
+MODULE_CALL_HOOK_DECL(puffs_50_in_hook, void,
(struct puffs_req *oreq, struct puffs_req *creqp));
MODULE_CALL_VOID_HOOK(puffs_50_in_hook,
(struct puffs_req *oreq, struct puffs_req *creqp),
diff -r 5e382cb3910b -r 6e5850345feb sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/kern/kern_proc.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_proc.c,v 1.209.2.13 2019/01/18 00:01:01 pgoyette Exp $ */
+/* $NetBSD: kern_proc.c,v 1.209.2.14 2019/01/21 06:49:28 pgoyette Exp $ */
/*-
* Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.209.2.13 2019/01/18 00:01:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.209.2.14 2019/01/21 06:49:28 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_kstack.h"
@@ -1901,7 +1901,7 @@
MODULE_CALL_HOOK(kern_proc_32_copyin_hook, int,
(struct proc *p, struct ps_strings *s), (p, s), enosys());
-MODULE_CALL_VOID_HOOK_DECL(kern_proc_32_base_hook,
+MODULE_CALL_HOOK_DECL(kern_proc_32_base_hook, void,
(char **argv, size_t i, vaddr_t *base));
MODULE_CALL_VOID_HOOK(kern_proc_32_base_hook,
(char **argv, size_t i, vaddr_t *base), (argv, i, base), __nothing);
diff -r 5e382cb3910b -r 6e5850345feb sys/net/rtsock.c
--- a/sys/net/rtsock.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/net/rtsock.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.238.2.23 2019/01/18 00:01:02 pgoyette Exp $ */
+/* $NetBSD: rtsock.c,v 1.238.2.24 2019/01/21 06:49:28 pgoyette Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.238.2.23 2019/01/18 00:01:02 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.238.2.24 2019/01/21 06:49:28 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -126,7 +126,7 @@
/*
* MODULE_HOOK glue for rtsock_14_oifmsg and rtsock_14_iflist
*/
-MODULE_CALL_VOID_HOOK_DECL(rtsock_14_oifmsg_hook, (struct ifnet *ifp));
+MODULE_CALL_HOOK_DECL(rtsock_14_oifmsg_hook, void, (struct ifnet *ifp));
MODULE_CALL_VOID_HOOK(rtsock_14_oifmsg_hook, (struct ifnet *ifp), (ifp),
__nothing);
@@ -151,34 +151,34 @@
(ifp, w, info, len),
enosys());
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_missmsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_missmsg_hook, void,
(int, const struct rt_addrinfo *, int, int));
MODULE_CALL_VOID_HOOK(rtsock_50_rt_missmsg_hook,
(int type, const struct rt_addrinfo *rtinfo, int flags, int error),
(type, rtinfo, flags, error), __nothing);
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ifmsg_hook, (struct ifnet *));
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ifmsg_hook, void, (struct ifnet *));
MODULE_CALL_VOID_HOOK(rtsock_50_rt_ifmsg_hook, (struct ifnet *ifp), (ifp),
__nothing);
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_newaddrmsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_newaddrmsg_hook, void,
(int, struct ifaddr *, int, struct rtentry *));
MODULE_CALL_VOID_HOOK(rtsock_50_rt_newaddrmsg_hook,
(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt),
(cmd, ifa, error, rt), __nothing);
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ifannouncemsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ifannouncemsg_hook, void,
(struct ifnet *, int what));
MODULE_CALL_VOID_HOOK(rtsock_50_rt_ifannouncemsg_hook,
(struct ifnet *ifp, int what), (ifp, what), __nothing);
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ieee80211msg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ieee80211msg_hook, void,
(struct ifnet *, int, void *, size_t));
MODULE_CALL_VOID_HOOK(rtsock_50_rt_ieee80211msg_hook,
(struct ifnet *ifp, int what, void *data, size_t data_len),
(ifp, what, data, data_len), __nothing);
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_oifmsg_hook, (struct ifnet *ifp));
+MODULE_CALL_HOOK_DECL(rtsock_50_oifmsg_hook, void, (struct ifnet *ifp));
MODULE_CALL_VOID_HOOK(rtsock_50_oifmsg_hook, (struct ifnet *ifp), (ifp),
__nothing);
@@ -186,7 +186,7 @@
* MODULE_HOOK glue for rtsock70_newaddrmsg1, rtsock70_ifaddr_listaddr,
* and rtsock70_ifaddr_listif
*/
-MODULE_CALL_VOID_HOOK_DECL(rtsock_70_newaddr_hook, (int, struct ifaddr *));
+MODULE_CALL_HOOK_DECL(rtsock_70_newaddr_hook, void, (int, struct ifaddr *));
MODULE_CALL_VOID_HOOK(rtsock_70_newaddr_hook, (int cmd, struct ifaddr *ifa),
(cmd, ifa), __nothing);
diff -r 5e382cb3910b -r 6e5850345feb sys/net/rtsock_shared.c
--- a/sys/net/rtsock_shared.c Fri Jan 18 08:48:24 2019 +0000
+++ b/sys/net/rtsock_shared.c Mon Jan 21 06:49:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock_shared.c,v 1.1.2.5 2019/01/18 00:01:02 pgoyette Exp $ */
+/* $NetBSD: rtsock_shared.c,v 1.1.2.6 2019/01/21 06:49:28 pgoyette Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.1.2.5 2019/01/18 00:01:02 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock_shared.c,v 1.1.2.6 2019/01/21 06:49:28 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1299,7 +1299,7 @@
/*
* MODULE_HOOK glue for rtsock_14_oifmsg and rtsock_14_iflist
*/
-MODULE_CALL_VOID_HOOK_DECL(rtsock_14_oifmsg_hook, (struct ifnet *ifp));
+MODULE_CALL_HOOK_DECL(rtsock_14_oifmsg_hook, void, (struct ifnet *ifp));
MODULE_CALL_HOOK_DECL(rtsock_14_iflist_hook, int,
(struct ifnet *ifp, struct rt_walkarg *w, struct rt_addrinfo *info,
@@ -1312,27 +1312,27 @@
(struct ifnet *ifp, struct rt_walkarg *w, struct rt_addrinfo *info,
size_t len));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_missmsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_missmsg_hook, void,
(int, const struct rt_addrinfo *, int, int));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ifmsg_hook, (struct ifnet *));
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ifmsg_hook, void, (struct ifnet *));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_newaddrmsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_newaddrmsg_hook, void,
(int, struct ifaddr *, int, struct rtentry *));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ifannouncemsg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ifannouncemsg_hook, void,
(struct ifnet *, int what));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_rt_ieee80211msg_hook,
+MODULE_CALL_HOOK_DECL(rtsock_50_rt_ieee80211msg_hook, void,
(struct ifnet *, int, void *, size_t));
-MODULE_CALL_VOID_HOOK_DECL(rtsock_50_oifmsg_hook, (struct ifnet *ifp));
+MODULE_CALL_HOOK_DECL(rtsock_50_oifmsg_hook, void, (struct ifnet *ifp));
/*
* MODULE_HOOK glue for rtsock70_newaddrmsg1, rtsock70_ifaddr_listaddr,
* and rtsock70_ifaddr_listif
*/
-MODULE_CALL_VOID_HOOK_DECL(rtsock_70_newaddr_hook, (int, struct ifaddr *));
+MODULE_CALL_HOOK_DECL(rtsock_70_newaddr_hook, void, (int, struct ifaddr *));
MODULE_CALL_HOOK_DECL(rtsock_70_iflist_hook, int,
Home |
Main Index |
Thread Index |
Old Index