git: kernel: Stop including userland-only includes in kernel code (1/x).

Sascha Wildner swildner at crater.dragonflybsd.org
Wed May 8 01:20:33 PDT 2019


commit 4ad7b37a03ecbace9b395be73b8ef0bc0b938663
Author: Sascha Wildner <saw at online.de>
Date:   Wed May 8 10:19:59 2019 +0200

    kernel: Stop including userland-only includes in kernel code (1/x).
    
    Specifically <stdbool.h>, <arpa/inet.h>, <dlfcn.h>, <limits.h>, and
    <unistd.h>.
    
    Only in hammer2's zlib it needed to be exchanged with a more suitable
    header. The rest could be removed.

Summary of changes:
 sys/dev/drm/i915/i915_params.h            | 1 -
 sys/netproto/mpls/mpls.h                  | 4 ++--
 sys/platform/pc64/x86_64/db_trace.c       | 1 -
 sys/vfs/hammer2/zlib/hammer2_zlib_zconf.h | 2 +-
 sys/vm/swap_pager.c                       | 3 +--
 5 files changed, 4 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4ad7b37a03ecbace9b395be73b8ef0bc0b938663


-- 
DragonFly BSD source repository


More information about the Commits mailing list