Make <sys/systm.h> more self-contained.

Replace <sys/cdefs.h> with <sys/types.h>.  Other includes need types
defined in <sys/types.h> and <sys/types.h> includes <sys/cdefs.h>
already.

While here, move the <machine/*.h> headers below the <sys/*.h>
headers.

Reviewed by:	imp, kib
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D38841
This commit is contained in:
John Baldwin 2023-03-08 15:05:10 -08:00
parent cc36164a77
commit eee4264c9f

View File

@ -40,13 +40,13 @@
#ifndef _SYS_SYSTM_H_
#define _SYS_SYSTM_H_
#include <sys/cdefs.h>
#include <machine/atomic.h>
#include <machine/cpufunc.h>
#include <sys/types.h>
#include <sys/callout.h>
#include <sys/kassert.h>
#include <sys/queue.h>
#include <sys/stdint.h> /* for people using printf mainly */
#include <machine/atomic.h>
#include <machine/cpufunc.h>
__NULLABILITY_PRAGMA_PUSH