git: vm: Change 'kernel_map' global to type of 'struct vm_map *'

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 19 03:49:19 PDT 2021


commit 1eeaf6b2bb3621f01159723feaba3aa2c5d933fd
Author: Aaron LI <aly at aaronly.me>
Date:   Thu May 20 22:40:00 2021 +0800

    vm: Change 'kernel_map' global to type of 'struct vm_map *'
    
    Change the global variable 'kernel_map' from type 'struct vm_map' to a
    pointer to this struct.  This simplify the code a bit since all
    invocations take its address.  This change also aligns with NetBSD's
    'kernal_map' that it's also a pointer, which also helps the porting of
    NVMM.
    
    No functional changes.

Summary of changes:
 sys/ddb/db_break.c                       |  8 ++++----
 sys/dev/drm/drm_scatter.c                |  4 ++--
 sys/dev/drm/linux_dma.c                  |  2 +-
 sys/dev/drm/linux_vmalloc.c              |  4 ++--
 sys/dev/video/bktr/bktr_core.c           |  8 ++++----
 sys/kern/imgact_gzip.c                   |  6 +++---
 sys/kern/kern_slaballoc.c                | 22 +++++++++++-----------
 sys/kern/kern_synch.c                    |  2 +-
 sys/kern/kern_timeout.c                  |  4 ++--
 sys/kern/link_elf_obj.c                  |  8 ++++----
 sys/kern/lwkt_thread.c                   | 15 ++++++++-------
 sys/kern/sys_pipe.c                      |  6 +++---
 sys/kern/sys_process.c                   | 12 ++++++------
 sys/kern/vfs_bio.c                       |  2 +-
 sys/libkern/arc4random.c                 |  2 +-
 sys/net/netisr.c                         |  2 +-
 sys/platform/pc64/x86_64/machdep.c       |  4 ++--
 sys/platform/pc64/x86_64/mp_machdep.c    |  8 ++++----
 sys/platform/pc64/x86_64/pmap.c          | 26 +++++++++++++-------------
 sys/platform/pc64/x86_64/trap.c          |  4 ++--
 sys/platform/vkernel64/platform/pmap.c   | 22 +++++++++++-----------
 sys/platform/vkernel64/x86_64/autoconf.c |  8 ++++----
 sys/platform/vkernel64/x86_64/mp.c       |  4 ++--
 sys/platform/vkernel64/x86_64/trap.c     |  4 ++--
 sys/vfs/procfs/procfs_mem.c              |  4 ++--
 sys/vm/vm_contig.c                       | 10 +++++-----
 sys/vm/vm_fault.c                        |  8 ++++----
 sys/vm/vm_glue.c                         |  4 ++--
 sys/vm/vm_kern.c                         | 12 +++++++-----
 sys/vm/vm_kern.h                         |  2 +-
 sys/vm/vm_map.c                          |  4 ++--
 sys/vm/vm_object.c                       |  2 +-
 sys/vm/vm_page.c                         |  2 +-
 sys/vm/vm_pager.c                        |  2 +-
 sys/vm/vm_zone.c                         |  8 ++++----
 35 files changed, 124 insertions(+), 121 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1eeaf6b2bb3621f01159723feaba3aa2c5d933fd


-- 
DragonFly BSD source repository


More information about the Commits mailing list