Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Remove unnecessary include of <sys/malloc.h>.



details:   https://anonhg.NetBSD.org/src/rev/07975c224daf
branches:  trunk
changeset: 370731:07975c224daf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 25 17:52:25 2022 +0000

description:
Remove unnecessary include of <sys/malloc.h>.

diffstat:

 sys/dev/ic/adv.c              |  5 ++---
 sys/dev/ic/advlib.c           |  5 ++---
 sys/dev/ic/adwlib.c           |  5 ++---
 sys/dev/ic/adwmcode.c         |  5 ++---
 sys/dev/ic/aha.c              |  5 ++---
 sys/dev/ic/aic6915.c          |  5 ++---
 sys/dev/ic/aic7xxx_seeprom.c  |  7 +++----
 sys/dev/ic/am7990.c           |  5 ++---
 sys/dev/ic/am79900.c          |  5 ++---
 sys/dev/ic/arn5416.c          |  5 ++---
 sys/dev/ic/arn9280.c          |  5 ++---
 sys/dev/ic/arn9285.c          |  5 ++---
 sys/dev/ic/arn9287.c          |  5 ++---
 sys/dev/ic/arn9380.c          |  5 ++---
 sys/dev/ic/ath_netbsd.c       |  5 ++---
 sys/dev/ic/awi.c              |  5 ++---
 sys/dev/ic/bha.c              |  5 ++---
 sys/dev/ic/cpc700.c           |  5 ++---
 sys/dev/ic/dm9000.c           |  3 +--
 sys/dev/ic/dp83932.c          |  5 ++---
 sys/dev/ic/gem.c              |  5 ++---
 sys/dev/ic/lemac.c            |  5 ++---
 sys/dev/ic/lsi64854.c         |  5 ++---
 sys/dev/ic/mm58167.c          |  5 ++---
 sys/dev/ic/pcf8584.c          |  3 +--
 sys/dev/ic/rtl8169.c          |  5 ++---
 sys/dev/ic/rtl81x9.c          |  5 ++---
 sys/dev/ic/siop_common.c      |  5 ++---
 sys/dev/ic/smc83c170.c        |  5 ++---
 sys/dev/ic/smc91cxx.c         |  5 ++---
 sys/dev/ic/tpm.c              |  5 ++---
 sys/dev/ic/ug.c               |  5 ++---
 sys/dev/ic/uha.c              |  5 ++---
 sys/dev/marvell/gtpci.c       |  5 ++---
 sys/dev/pci/aac_pci.c         |  5 ++---
 sys/dev/pci/adv_pci.c         |  5 ++---
 sys/dev/pci/adw_pci.c         |  5 ++---
 sys/dev/pci/arcmsr.c          |  5 ++---
 sys/dev/pci/gffb.c            |  5 ++---
 sys/dev/pci/if_an_pci.c       |  5 ++---
 sys/dev/pci/if_athn_pci.c     |  5 ++---
 sys/dev/pci/if_atw_pci.c      |  5 ++---
 sys/dev/pci/if_ral_pci.c      |  5 ++---
 sys/dev/pci/if_rtw_pci.c      |  5 ++---
 sys/dev/pci/joy_eso.c         |  5 ++---
 sys/dev/pci/machfb.c          |  5 ++---
 sys/dev/pci/mfi_pci.c         |  5 ++---
 sys/dev/pci/opl_cmpci.c       |  5 ++---
 sys/dev/pci/opl_eso.c         |  5 ++---
 sys/dev/pci/opl_fms.c         |  5 ++---
 sys/dev/pci/opl_sv.c          |  5 ++---
 sys/dev/pci/opl_yds.c         |  5 ++---
 sys/dev/pci/pciconf.c         |  5 ++---
 sys/dev/pci/pm2fb.c           |  5 ++---
 sys/dev/pci/pm3fb.c           |  5 ++---
 sys/dev/pci/r128fb.c          |  5 ++---
 sys/dev/pci/radeonfb_bios.c   |  5 ++---
 sys/dev/pci/radeonfb_i2c.c    |  3 +--
 sys/dev/pci/rtsx_pci.c        |  5 ++---
 sys/dev/pci/satalink.c        |  5 ++---
 sys/dev/pci/siisata_pci.c     |  5 ++---
 sys/dev/pci/siop_pci_common.c |  5 ++---
 sys/dev/pci/vga_pci.c         |  5 ++---
 sys/dev/pci/voodoofb.c        |  5 ++---
 sys/dev/pci/voyager.c         |  5 ++---
 sys/dev/sbus/be.c             |  5 ++---
 sys/dev/sbus/bwtwo_sbus.c     |  5 ++---
 sys/dev/sbus/cgsix_sbus.c     |  5 ++---
 sys/dev/sbus/cgthree_sbus.c   |  5 ++---
 sys/dev/sbus/dma_sbus.c       |  5 ++---
 sys/dev/sbus/if_gem_sbus.c    |  5 ++---
 sys/dev/sbus/if_hme_sbus.c    |  5 ++---
 sys/dev/sbus/if_le.c          |  5 ++---
 sys/dev/sbus/if_le_lebuffer.c |  5 ++---
 sys/dev/sbus/if_le_ledma.c    |  5 ++---
 sys/dev/sbus/lebuffer.c       |  5 ++---
 sys/dev/sbus/p9100.c          |  5 ++---
 sys/dev/sbus/qe.c             |  5 ++---
 sys/dev/sbus/qec.c            |  5 ++---
 sys/dev/sbus/tcx.c            |  5 ++---
 sys/dev/sbus/xbox.c           |  5 ++---
 81 files changed, 160 insertions(+), 241 deletions(-)

diffs (truncated from 1975 to 300 lines):

diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/adv.c
--- a/sys/dev/ic/adv.c  Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/adv.c  Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: adv.c,v 1.52 2021/08/07 16:19:11 thorpej Exp $ */
+/*     $NetBSD: adv.c,v 1.53 2022/09/25 18:43:32 thorpej Exp $ */
 
 /*
  * Generic driver for the Advanced Systems Inc. Narrow SCSI controllers
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adv.c,v 1.52 2021/08/07 16:19:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adv.c,v 1.53 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -40,7 +40,6 @@
 #include <sys/errno.h>
 #include <sys/ioctl.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
 #include <sys/buf.h>
 #include <sys/proc.h>
 
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/advlib.c
--- a/sys/dev/ic/advlib.c       Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/advlib.c       Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: advlib.c,v 1.29 2019/12/15 16:48:27 tsutsui Exp $        */
+/*      $NetBSD: advlib.c,v 1.30 2022/09/25 18:43:32 thorpej Exp $        */
 
 /*
  * Low level routines for the Advanced Systems Inc. SCSI controllers chips
@@ -46,11 +46,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advlib.c,v 1.29 2019/12/15 16:48:27 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advlib.c,v 1.30 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/kernel.h>
 #include <sys/queue.h>
 #include <sys/device.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/adwlib.c
--- a/sys/dev/ic/adwlib.c       Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/adwlib.c       Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adwlib.c,v 1.44 2019/12/15 16:48:27 tsutsui Exp $        */
+/* $NetBSD: adwlib.c,v 1.45 2022/09/25 18:43:32 thorpej Exp $        */
 
 /*
  * Low level routines for the Advanced Systems Inc. SCSI controllers chips
@@ -45,11 +45,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.44 2019/12/15 16:48:27 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.45 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/kernel.h>
 #include <sys/queue.h>
 #include <sys/device.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/adwmcode.c
--- a/sys/dev/ic/adwmcode.c     Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/adwmcode.c     Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: adwmcode.c,v 1.18 2019/12/15 16:48:27 tsutsui Exp $        */
+/*      $NetBSD: adwmcode.c,v 1.19 2022/09/25 18:43:32 thorpej Exp $        */
 
 /*
  * Generic driver definitions and exported functions for the Advanced
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.18 2019/12/15 16:48:27 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adwmcode.c,v 1.19 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,6 @@
 #include <sys/errno.h>
 #include <sys/ioctl.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
 #include <sys/buf.h>
 #include <sys/proc.h>
 
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/aha.c
--- a/sys/dev/ic/aha.c  Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/aha.c  Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aha.c,v 1.65 2021/08/07 16:19:11 thorpej Exp $ */
+/*     $NetBSD: aha.c,v 1.66 2022/09/25 18:43:32 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aha.c,v 1.65 2021/08/07 16:19:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aha.c,v 1.66 2022/09/25 18:43:32 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -59,7 +59,6 @@
 #include <sys/errno.h>
 #include <sys/ioctl.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
 #include <sys/buf.h>
 #include <sys/proc.h>
 
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/aic6915.c
--- a/sys/dev/ic/aic6915.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/aic6915.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic6915.c,v 1.44 2020/03/15 22:19:00 thorpej Exp $     */
+/*     $NetBSD: aic6915.c,v 1.45 2022/09/25 18:43:32 thorpej Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,14 +35,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.44 2020/03/15 22:19:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.45 2022/09/25 18:43:32 thorpej Exp $");
 
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/callout.h>
 #include <sys/mbuf.h>
-#include <sys/malloc.h>
 #include <sys/kernel.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/aic7xxx_seeprom.c
--- a/sys/dev/ic/aic7xxx_seeprom.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/aic7xxx_seeprom.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx_seeprom.c,v 1.13 2009/03/14 15:36:17 dsl Exp $ */
+/*     $NetBSD: aic7xxx_seeprom.c,v 1.14 2022/09/25 18:43:32 thorpej Exp $     */
 
 /*
  * Product specific probe and attach routines for:
@@ -46,17 +46,16 @@
  * from the FreeBSD source file aic7xxx_pci.c by Frank van der Linden
  * <fvdl%NetBSD.org@localhost>
  *
- * $Id: aic7xxx_seeprom.c,v 1.13 2009/03/14 15:36:17 dsl Exp $
+ * $Id: aic7xxx_seeprom.c,v 1.14 2022/09/25 18:43:32 thorpej Exp $
  *
  * $FreeBSD: src/sys/dev/aic7xxx/aic7xxx_pci.c,v 1.22 2003/01/20 20:44:55 gibbs Exp $
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic7xxx_seeprom.c,v 1.13 2009/03/14 15:36:17 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic7xxx_seeprom.c,v 1.14 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/kernel.h>
 #include <sys/queue.h>
 #include <sys/device.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/am7990.c
--- a/sys/dev/ic/am7990.c       Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/am7990.c       Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am7990.c,v 1.83 2020/10/20 18:17:58 roy Exp $  */
+/*     $NetBSD: am7990.c,v 1.84 2022/09/25 18:43:32 thorpej Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.83 2020/10/20 18:17:58 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: am7990.c,v 1.84 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -73,7 +73,6 @@
 #include <sys/syslog.h>
 #include <sys/socket.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
 #include <sys/ioctl.h>
 #include <sys/errno.h>
 #include <sys/rndsource.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/am79900.c
--- a/sys/dev/ic/am79900.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/am79900.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am79900.c,v 1.31 2020/10/20 18:17:58 roy Exp $ */
+/*     $NetBSD: am79900.c,v 1.32 2022/09/25 18:43:32 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: am79900.c,v 1.31 2020/10/20 18:17:58 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: am79900.c,v 1.32 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -111,7 +111,6 @@
 #include <sys/syslog.h>
 #include <sys/socket.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
 #include <sys/ioctl.h>
 #include <sys/errno.h>
 #include <sys/rndsource.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/arn5416.c
--- a/sys/dev/ic/arn5416.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/arn5416.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arn5416.c,v 1.2 2013/04/03 14:20:02 christos Exp $     */
+/*     $NetBSD: arn5416.c,v 1.3 2022/09/25 18:43:32 thorpej Exp $      */
 /*     $OpenBSD: ar5416.c,v 1.12 2012/06/10 21:23:36 kettenis Exp $    */
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5416.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5416.c,v 1.3 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -32,7 +32,6 @@
 #include <sys/kernel.h>
 #include <sys/socket.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/queue.h>
 #include <sys/callout.h>
 #include <sys/conf.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/arn9280.c
--- a/sys/dev/ic/arn9280.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/arn9280.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arn9280.c,v 1.2 2013/04/03 14:20:02 christos Exp $     */
+/*     $NetBSD: arn9280.c,v 1.3 2022/09/25 18:43:32 thorpej Exp $      */
 /*     $OpenBSD: ar9280.c,v 1.18 2012/06/10 21:23:36 kettenis Exp $    */
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9280.c,v 1.2 2013/04/03 14:20:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9280.c,v 1.3 2022/09/25 18:43:32 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -32,7 +32,6 @@
 #include <sys/kernel.h>
 #include <sys/socket.h>
 #include <sys/systm.h>
-#include <sys/malloc.h>
 #include <sys/queue.h>
 #include <sys/callout.h>
 #include <sys/conf.h>
diff -r e2ac6c0472bc -r 07975c224daf sys/dev/ic/arn9285.c
--- a/sys/dev/ic/arn9285.c      Sun Sep 25 17:33:19 2022 +0000
+++ b/sys/dev/ic/arn9285.c      Sun Sep 25 17:52:25 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arn9285.c,v 1.4 2019/07/25 11:56:09 msaitoh Exp $      */
+/*     $NetBSD: arn9285.c,v 1.5 2022/09/25 18:43:32 thorpej Exp $      */
 /*     $OpenBSD: ar9285.c,v 1.19 2012/06/10 21:23:36 kettenis Exp $    */
 
 /*-
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9285.c,v 1.4 2019/07/25 11:56:09 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9285.c,v 1.5 2022/09/25 18:43:32 thorpej Exp $");
 
 #ifndef _MODULE
 #include "athn_usb.h"
@@ -36,7 +36,6 @@
 #include <sys/kernel.h>



Home | Main Index | Thread Index | Old Index