mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
sys/malloc.h: move sys/proc.h MALLOC_DECLAREs here
This avoids the need to explicitly include sys/malloc.h before sys/proc.h. Suggested by: kib Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44766
This commit is contained in:
parent
2a8c50592f
commit
101c80fe46
|
@ -157,6 +157,9 @@ struct malloc_type_header {
|
|||
|
||||
MALLOC_DECLARE(M_CACHE);
|
||||
MALLOC_DECLARE(M_DEVBUF);
|
||||
MALLOC_DECLARE(M_PARGS);
|
||||
MALLOC_DECLARE(M_SESSION);
|
||||
MALLOC_DECLARE(M_SUBPROC);
|
||||
MALLOC_DECLARE(M_TEMP);
|
||||
|
||||
/*
|
||||
|
|
|
@ -938,12 +938,6 @@ struct proc {
|
|||
#define SINGLE_BOUNDARY 2
|
||||
#define SINGLE_ALLPROC 3
|
||||
|
||||
#ifdef MALLOC_DECLARE
|
||||
MALLOC_DECLARE(M_PARGS);
|
||||
MALLOC_DECLARE(M_SESSION);
|
||||
MALLOC_DECLARE(M_SUBPROC);
|
||||
#endif
|
||||
|
||||
#define FOREACH_PROC_IN_SYSTEM(p) \
|
||||
LIST_FOREACH((p), &allproc, p_list)
|
||||
#define FOREACH_THREAD_IN_PROC(p, td) \
|
||||
|
|
Loading…
Reference in a new issue