git: kernel: Move M_LWKTMSG declaration to <sys/msgport2.h>.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Oct 24 04:59:33 PDT 2019


commit 205d3f49763478456e89f13db9310f0c912a02a5
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Fri Oct 18 13:58:45 2019 +0300

    kernel: Move M_LWKTMSG declaration to <sys/msgport2.h>.
    
     Including <sys/malloc.h> has side effects, its introduction in this
     header was done in 6aad077d69b6a2d39405e25c987bb090ff78a724.
     The msgport2.h is a better place for M_LWKTMSG since all users already
     include this header directly or indirectly through <net/netmsg2.h>.
    
     Also, this moves <sys/malloc.h> inclusion after <sys/globaldata.h> down
     the chain when including <sys/systm.h> (TBA later).
    
     Fix a single case where malloc.h where not included before <sys/mount.h>
     for M_MOUNT.

Summary of changes:
 sys/kern/vfs_quota.c |  1 +
 sys/sys/msgport.h    | 12 ------------
 sys/sys/msgport2.h   | 11 +++++++++--
 3 files changed, 10 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/205d3f49763478456e89f13db9310f0c912a02a5


-- 
DragonFly BSD source repository



More information about the Commits mailing list