Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Get rid of unnecessary header inclusions
details: https://anonhg.NetBSD.org/src/rev/da916456aa0c
branches: trunk
changeset: 350432:da916456aa0c
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Jan 11 13:08:29 2017 +0000
description:
Get rid of unnecessary header inclusions
diffstat:
sys/net/if_arcsubr.c | 6 ++----
sys/net/if_atmsubr.c | 6 ++----
sys/net/if_fddisubr.c | 6 ++----
sys/net/if_hippisubr.c | 6 ++----
sys/net/if_tokensubr.c | 6 ++----
sys/net/if_tun.c | 5 ++---
sys/net/route.c | 5 ++---
sys/net/rtbl.c | 5 ++---
sys/netinet/igmp.c | 5 ++---
sys/netinet/in_pcb.c | 5 ++---
sys/netinet/ip_etherip.c | 5 ++---
sys/netinet/ip_flow.c | 7 ++-----
sys/netinet/ip_mroute.c | 5 ++---
sys/netinet/ip_output.c | 8 ++------
sys/netinet/ip_reass.c | 7 ++-----
sys/netinet/portalgo.c | 5 ++---
sys/netinet6/dest6.c | 7 ++-----
sys/netinet6/frag6.c | 8 ++------
sys/netinet6/ip6_etherip.c | 5 ++---
sys/netinet6/ip6_flow.c | 7 ++-----
sys/netinet6/ip6_forward.c | 7 ++-----
sys/netinet6/ip6_mroute.c | 5 ++---
sys/netinet6/ip6_output.c | 5 ++---
sys/netinet6/mld6.c | 5 ++---
sys/netinet6/nd6.c | 5 ++---
25 files changed, 50 insertions(+), 96 deletions(-)
diffs (truncated from 675 to 300 lines):
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_arcsubr.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arcsubr.c,v 1.74 2016/10/03 11:06:06 ozaki-r Exp $ */
+/* $NetBSD: if_arcsubr.c,v 1.75 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.74 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.75 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -46,8 +46,6 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_atmsubr.c
--- a/sys/net/if_atmsubr.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_atmsubr.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atmsubr.c,v 1.60 2016/10/03 11:06:06 ozaki-r Exp $ */
+/* $NetBSD: if_atmsubr.c,v 1.61 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 1996 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atmsubr.c,v 1.60 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atmsubr.c,v 1.61 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -43,8 +43,6 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_fddisubr.c
--- a/sys/net/if_fddisubr.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_fddisubr.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_fddisubr.c,v 1.102 2016/10/03 11:06:06 ozaki-r Exp $ */
+/* $NetBSD: if_fddisubr.c,v 1.103 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.102 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fddisubr.c,v 1.103 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_gateway.h"
@@ -111,8 +111,6 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_hippisubr.c
--- a/sys/net/if_hippisubr.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_hippisubr.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_hippisubr.c,v 1.47 2016/04/28 00:16:56 ozaki-r Exp $ */
+/* $NetBSD: if_hippisubr.c,v 1.48 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 1982, 1989, 1993
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hippisubr.c,v 1.47 2016/04/28 00:16:56 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hippisubr.c,v 1.48 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -42,8 +42,6 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_tokensubr.c
--- a/sys/net/if_tokensubr.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_tokensubr.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tokensubr.c,v 1.78 2016/10/03 11:06:06 ozaki-r Exp $ */
+/* $NetBSD: if_tokensubr.c,v 1.79 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 1982, 1989, 1993
@@ -92,7 +92,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.78 2016/10/03 11:06:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tokensubr.c,v 1.79 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -105,8 +105,6 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/if_tun.c
--- a/sys/net/if_tun.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/if_tun.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_tun.c,v 1.133 2016/10/02 14:17:07 christos Exp $ */
+/* $NetBSD: if_tun.c,v 1.134 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -15,7 +15,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.133 2016/10/02 14:17:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.134 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -26,7 +26,6 @@
#include <sys/systm.h>
#include <sys/mbuf.h>
#include <sys/buf.h>
-#include <sys/protosw.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/route.c
--- a/sys/net/route.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/route.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.185 2016/12/21 04:01:57 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.186 2017/01/11 13:08:29 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.185 2016/12/21 04:01:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.186 2017/01/11 13:08:29 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -110,7 +110,6 @@
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/domain.h>
-#include <sys/protosw.h>
#include <sys/kernel.h>
#include <sys/ioctl.h>
#include <sys/pool.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/net/rtbl.c
--- a/sys/net/rtbl.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/net/rtbl.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtbl.c,v 1.5 2016/12/12 03:55:57 ozaki-r Exp $ */
+/* $NetBSD: rtbl.c,v 1.6 2017/01/11 13:08:29 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008, 2011 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
#endif /* _KERNEL && _KERNEL_OPT */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtbl.c,v 1.5 2016/12/12 03:55:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtbl.c,v 1.6 2017/01/11 13:08:29 ozaki-r Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -107,7 +107,6 @@
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/domain.h>
-#include <sys/protosw.h>
#include <sys/kernel.h>
#include <sys/ioctl.h>
#include <sys/pool.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/netinet/igmp.c
--- a/sys/netinet/igmp.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/netinet/igmp.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igmp.c,v 1.62 2016/08/01 03:15:30 ozaki-r Exp $ */
+/* $NetBSD: igmp.c,v 1.63 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.62 2016/08/01 03:15:30 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.63 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_mrouting.h"
@@ -50,7 +50,6 @@
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
-#include <sys/protosw.h>
#include <sys/systm.h>
#include <sys/cprng.h>
#include <sys/sysctl.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/netinet/in_pcb.c
--- a/sys/netinet/in_pcb.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/netinet/in_pcb.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_pcb.c,v 1.172 2016/12/12 03:55:57 ozaki-r Exp $ */
+/* $NetBSD: in_pcb.c,v 1.173 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.172 2016/12/12 03:55:57 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_pcb.c,v 1.173 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -103,7 +103,6 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
-#include <sys/protosw.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/ioctl.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/netinet/ip_etherip.c
--- a/sys/netinet/ip_etherip.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/netinet/ip_etherip.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_etherip.c,v 1.19 2016/12/15 09:28:06 ozaki-r Exp $ */
+/* $NetBSD: ip_etherip.c,v 1.20 2017/01/11 13:08:29 ozaki-r Exp $ */
/*
* Copyright (c) 2006, Hans Rosenfeld <rosenfeld%grumpf.hope-2000.org@localhost>
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_etherip.c,v 1.19 2016/12/15 09:28:06 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_etherip.c,v 1.20 2017/01/11 13:08:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -73,7 +73,6 @@
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/syslog.h>
-#include <sys/protosw.h>
#include <sys/kernel.h>
#include <net/if.h>
diff -r 2fcc92639dfa -r da916456aa0c sys/netinet/ip_flow.c
--- a/sys/netinet/ip_flow.c Wed Jan 11 12:19:43 2017 +0000
+++ b/sys/netinet/ip_flow.c Wed Jan 11 13:08:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_flow.c,v 1.78 2016/12/08 05:16:33 ozaki-r Exp $ */
+/* $NetBSD: ip_flow.c,v 1.79 2017/01/11 13:08:29 ozaki-r Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
Home |
Main Index |
Thread Index |
Old Index