git: <sys/malloc.h>: Reduce kmalloc() implicit requirements on <sys/systm.h>.

Rimvydas Jasinskas zrj at
Fri Nov 1 08:43:36 PDT 2019

commit f938c583285bf2183caffc76b28e8e8d2d1190f0
Author: zrj <rimvydas.jasinskas at>
Date:   Fri Oct 25 13:54:32 2019 +0300

    <sys/malloc.h>: Reduce kmalloc() implicit requirements on <sys/systm.h>.
     Use __builtin_memset() directly.  Use of __DEQUALIFY() not needed here.
     The "#if 1" case already makes use of __builtin_constant_p() compiler
     extension that we do not have feature check in <sys/cdefs.h> (using
     "#if __GNUC_PREREQ__(2, 0)" should be good enough).
     This finally decouples <sys/malloc.h> from <sys/systm.h> bzero() macro
     visibility (also in "#if 1" block).

Summary of changes:
 sys/sys/malloc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list