Move the definition of M_MEMDESC to a non-optional file. This allows

kernels configurations without the 'mem' device to compile.
This commit is contained in:
Scott Long 2004-08-07 06:21:37 +00:00
parent f61bdfe072
commit 066853b70e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133255
2 changed files with 5 additions and 5 deletions

View File

@ -112,6 +112,11 @@ static int amd64_mtrrtomrt[] = {
#define MTRRTOMRTLEN (sizeof(amd64_mtrrtomrt) / sizeof(amd64_mtrrtomrt[0]))
/*
* Used in /dev/mem drivers and elsewhere
*/
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
static int
amd64_mtrr2mrt(int val)
{

View File

@ -67,11 +67,6 @@ __FBSDID("$FreeBSD$");
#include <machine/memdev.h>
/*
* Used in /dev/mem drivers and elsewhere
*/
MALLOC_DEFINE(M_MEMDESC, "memdesc", "memory range descriptors");
/* ARGSUSED */
int
memrw(struct cdev *dev, struct uio *uio, int flags)