git: Fix <machine/varargs.h> use cases.

Rimvydas Jasinskas zrj at
Mon Jul 4 02:51:00 PDT 2016

commit 5f0fe703ba9b92b80474ba29ad14f8e1fb1d97e9
Author: zrj <rimvydas.jasinskas at>
Date:   Fri Jul 1 13:32:46 2016 +0300

    Fix <machine/varargs.h> use cases.
    First varargs.h depended on namespace pollution to provide typdef of __va_list
    to declare va_list. Usually thorugh sys/systm.h including sys/stdarg.h
    So short-circuit directly to compiler builtin in case of __GNUC__
    Also remove machine/varargs.h usage from other kernel sources:
      sys/kern/kern_dsched.c: Not needed (just 3 dummy functions)
      sys/dev/misc/tbridge/tbridge.c: Both use just __va_smth variants
      sys/kern/subr_taskqueue.c:      and get those through sys/systm.h
    This leaves all the kernel code using <stdarg.h> variant consistently.

Summary of changes:
 sys/cpu/x86_64/include/varargs.h | 2 +-
 sys/dev/misc/tbridge/tbridge.c   | 1 -
 sys/kern/kern_dsched.c           | 1 -
 sys/kern/subr_taskqueue.c        | 1 -
 4 files changed, 1 insertion(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list