fix build for 'no options MTRR'

This commit is contained in:
mlelstv 2013-06-06 07:55:46 +00:00
parent 6f7d4f1823
commit 78c79fafb1

View File

@ -38,6 +38,7 @@
#include "drmP.h"
#if defined(__NetBSD__)
# ifdef DRM_NO_AGP
# define NAGP_I810 0
@ -56,6 +57,9 @@
# if NGENFB > 0
# include <dev/wsfb/genfbvar.h>
# endif
# if defined(_KERNEL_OPT)
# include "opt_mtrr.h"
# endif
#endif
MALLOC_DEFINE(DRM_MEM_DMA, "drm_dma", "DRM DMA Data Structures");
@ -300,7 +304,7 @@ drm_mtrr_del(int __unused handle, unsigned long offset, size_t size, int flags)
int
drm_mtrr_add(unsigned long offset, size_t size, int flags)
{
#ifdef MTRR_GETSET_KERNEL
#if defined(MTRR) && defined(MTRR_GETSET_KERNEL)
struct mtrr mtrrmap;
int one = 1;
@ -317,7 +321,7 @@ drm_mtrr_add(unsigned long offset, size_t size, int flags)
int
drm_mtrr_del(int __unused handle, unsigned long offset, size_t size, int flags)
{
#ifdef MTRR_GETSET_KERNEL
#if defined(MTRR) && defined(MTRR_GETSET_KERNEL)
struct mtrr mtrrmap;
int one = 1;