git: kernel/drm: Decouple from network headers.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Nov 1 08:43:34 PDT 2019


commit 8b44ed4d4c71533839e39cc102310995af764a92
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Oct 22 19:18:56 2019 +0300

    kernel/drm: Decouple from network headers.
    
     This removes all <net*/*.h> headers (including <sys/mbuf.h>) from
     dependency chain in all drm devices.  There is no need to use network
     headers in drm compat layer.  Previously drm was using <net/if_var.h>
     as a fallback to get <sys/malloc.h>.  Use kmalloc/kfree and M_* flags
     in linux/gfp.h.  At this point no system headers should be including
     <sys/malloc.h> except for disk and vfs headers for obvious reasons.
    
     Later on even M_* flags could be moved into <sys/_malloc.h> for better
     separation to linux/slab.h.

Summary of changes:
 sys/dev/drm/include/linux/gfp.h    |  1 +
 sys/dev/drm/include/linux/list.h   | 18 ++++++++++++++----
 sys/dev/drm/linux_kobject.c        |  1 +
 sys/dev/video/vga/vga_switcheroo.c |  1 +
 4 files changed, 17 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b44ed4d4c71533839e39cc102310995af764a92


-- 
DragonFly BSD source repository


More information about the Commits mailing list