git: <sys/slaballoc.h>: Switch to lighter <sys/_malloc.h> header.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Oct 31 14:15:48 PDT 2019


commit e2164e291b6b73561de02c50274ff8cc7fc528fe
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Oct 18 17:40:32 2019 +0300

    <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.

Summary of changes:
 sys/bus/gpio/gpio_acpi/gpio_acpi.c       | 1 +
 sys/dev/virtual/hyperv/vmbus/vmbus.c     | 1 +
 sys/kern/imgact_resident.c               | 1 +
 sys/kern/kern_collect.c                  | 1 +
 sys/kern/kern_plimit.c                   | 1 +
 sys/kern/kern_slaballoc.c                | 1 +
 sys/kern/kern_synch.c                    | 1 +
 sys/kern/kern_timeout.c                  | 1 +
 sys/kern/libmchain/subr_mchain.c         | 1 +
 sys/kern/subr_busdma.c                   | 1 +
 sys/kern/subr_cpu_topology.c             | 1 +
 sys/platform/pc64/apic/ioapic.c          | 1 +
 sys/platform/pc64/apic/lapic.c           | 1 +
 sys/platform/pc64/x86_64/efirt.c         | 1 +
 sys/platform/vkernel64/platform/kqueue.c | 1 +
 sys/sys/slaballoc.h                      | 4 ++--
 sys/vfs/isofs/cd9660/cd9660_rrip.c       | 1 +
 sys/vfs/nfs/nfs_bio.c                    | 1 +
 sys/vfs/procfs/procfs_map.c              | 1 +
 sys/vm/vm_meter.c                        | 1 +
 sys/vm/vm_object.c                       | 1 +
 21 files changed, 22 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e2164e291b6b73561de02c50274ff8cc7fc528fe


-- 
DragonFly BSD source repository



More information about the Commits mailing list