Fix <machine/varargs.h> use cases.First varargs.h depended on namespace pollution to provide typdef of __va_listto declare va_list. Usually thorugh sys/systm.h including sys/stdarg.hSo short-cir
Fix <machine/varargs.h> use cases.First varargs.h depended on namespace pollution to provide typdef of __va_listto declare va_list. Usually thorugh sys/systm.h including sys/stdarg.hSo 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.hThis leaves all the kernel code using <stdarg.h> variant consistently.
show more ...
kernel: Include <sys/ioccom.h> where ioctls are defined.Not where they are used.See http://bugs.dragonflybsd.org/issues/1334
tbridge: Remove an unused header. It's all in <sys/tbridge.h>.
kernel: Use M_ZERO for kmalloc() instead of bzero()ing.
dfregress,tbridge - Move into usr.bin and sys/dev * cleanup of the testcases, remove duplicates, consolidate in test/testcases.