mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
Fix compile. It seemed better to have memguard.c include opt_vm.h in
case future compile-time knobs were added that it wants to use. Also add include guards and forward declarations to vm/memguard.h. Approved by: zml (mentor) MFC after: 1 month
This commit is contained in:
parent
0674ea6f69
commit
f02d86e269
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211229
@ -37,6 +37,8 @@ __FBSDID("$FreeBSD$");
|
||||
* See the memguard(9) man page for more information on using MemGuard.
|
||||
*/
|
||||
|
||||
#include "opt_vm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -26,8 +26,14 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef _VM_MEMGUARD_H_
|
||||
#define _VM_MEMGUARD_H_
|
||||
|
||||
#include "opt_vm.h"
|
||||
|
||||
struct malloc_type;
|
||||
struct vm_map;
|
||||
|
||||
#ifdef DEBUG_MEMGUARD
|
||||
unsigned long memguard_fudge(unsigned long, unsigned long);
|
||||
void memguard_init(struct vm_map *);
|
||||
@ -43,3 +49,5 @@ int is_memguard_addr(void *);
|
||||
#define memguard_cmp(mtp, size) 0
|
||||
#define is_memguard_addr(addr) 0
|
||||
#endif
|
||||
|
||||
#endif /* _VM_MEMGUARD_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user