<sys/slaballoc.h>: Switch to lighter <sys/_malloc.h> header.
authorzrj <rimvydas.jasinskas@gmail.com>
Fri, 18 Oct 2019 14:40:32 +0000 (17:40 +0300)
committerzrj <rimvydas.jasinskas@gmail.com>
Thu, 31 Oct 2019 21:35:40 +0000 (23:35 +0200)
commite2164e291b6b73561de02c50274ff8cc7fc528fe
treeb53524eb2b487ed7939b3edd9843f7752fa8903c
parentbce6845a2b374552263efc68fc80228a7146870c
<sys/slaballoc.h>: Switch to lighter <sys/_malloc.h> header.

 The <sys/globaldata.h> embeds SLGlobalData that in turn embeds the
 "struct malloc_type".  Adjust several kernel sources for missing
 includes where memory allocation is performed.  Try to use alphabetical
 include order.

 Now (in most cases) <sys/malloc.h> is included after <sys/objcache.h>.
 Once it gets cleaned up, the <sys/malloc.h> inclusion could be moved
 out of <sys/idr.h> to drm Linux compat layer linux/slab.h without side
 effects.
21 files changed:
sys/bus/gpio/gpio_acpi/gpio_acpi.c
sys/dev/virtual/hyperv/vmbus/vmbus.c
sys/kern/imgact_resident.c
sys/kern/kern_collect.c
sys/kern/kern_plimit.c
sys/kern/kern_slaballoc.c
sys/kern/kern_synch.c
sys/kern/kern_timeout.c
sys/kern/libmchain/subr_mchain.c
sys/kern/subr_busdma.c
sys/kern/subr_cpu_topology.c
sys/platform/pc64/apic/ioapic.c
sys/platform/pc64/apic/lapic.c
sys/platform/pc64/x86_64/efirt.c
sys/platform/vkernel64/platform/kqueue.c
sys/sys/slaballoc.h
sys/vfs/isofs/cd9660/cd9660_rrip.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/procfs/procfs_map.c
sys/vm/vm_meter.c
sys/vm/vm_object.c