Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci if_et.c: nothing in this driver needs netinet in...



details:   https://anonhg.NetBSD.org/src/rev/9d2eab1fb44c
branches:  trunk
changeset: 985830:9d2eab1fb44c
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Sep 10 14:56:26 2021 +0000

description:
if_et.c: nothing in this driver needs netinet includes now,
so drop #include "opt_inet.h" and the includes of netinet headers
conditioned on it.

diffstat:

 sys/dev/pci/if_et.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r b427ba20b458 -r 9d2eab1fb44c sys/dev/pci/if_et.c
--- a/sys/dev/pci/if_et.c       Fri Sep 10 14:43:04 2021 +0000
+++ b/sys/dev/pci/if_et.c       Fri Sep 10 14:56:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_et.c,v 1.34 2021/09/10 14:43:04 jakllsch Exp $      */
+/*     $NetBSD: if_et.c,v 1.35 2021/09/10 14:56:26 jakllsch Exp $      */
 /*     $OpenBSD: if_et.c,v 1.12 2008/07/11 09:29:02 kevlo $    */
 /*
  * Copyright (c) 2007 The DragonFly Project.  All rights reserved.
@@ -37,9 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.34 2021/09/10 14:43:04 jakllsch Exp $");
-
-#include "opt_inet.h"
+__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.35 2021/09/10 14:56:26 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/endian.h>
@@ -61,14 +59,6 @@
 #include <net/if_ether.h>
 #include <net/if_arp.h>
 
-#ifdef INET
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <netinet/in_var.h>
-#include <netinet/ip.h>
-#include <netinet/if_inarp.h>
-#endif
-
 #include <net/bpf.h>
 
 #include <dev/mii/mii.h>



Home | Main Index | Thread Index | Old Index