diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-10-22 21:50:09 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-10-22 21:50:09 +0000 |
commit | 4e6ddcbb698c029b407d5dc43348c6e422a36705 (patch) | |
tree | 9334fd7efc0d01638695d0e0dd7979e4ca7ae9a4 | |
parent | ea7b4fdc225ebbbfd77f875fd3bfcfbdcfa9a1f7 (diff) |
Fix warning about static DRM(bufs_info) defined but not used in the
!__HAVE_DMA case.
-rw-r--r-- | bsd-core/drm_sysctl.c | 2 | ||||
-rw-r--r-- | bsd/drm_sysctl.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bsd-core/drm_sysctl.c b/bsd-core/drm_sysctl.c index 98bcc1ce..905f4c24 100644 --- a/bsd-core/drm_sysctl.c +++ b/bsd-core/drm_sysctl.c @@ -29,7 +29,9 @@ static int DRM(name_info)DRM_SYSCTL_HANDLER_ARGS; static int DRM(vm_info)DRM_SYSCTL_HANDLER_ARGS; static int DRM(clients_info)DRM_SYSCTL_HANDLER_ARGS; +#if __HAVE_DMA static int DRM(bufs_info)DRM_SYSCTL_HANDLER_ARGS; +#endif struct DRM(sysctl_list) { const char *name; diff --git a/bsd/drm_sysctl.h b/bsd/drm_sysctl.h index 98bcc1ce..905f4c24 100644 --- a/bsd/drm_sysctl.h +++ b/bsd/drm_sysctl.h @@ -29,7 +29,9 @@ static int DRM(name_info)DRM_SYSCTL_HANDLER_ARGS; static int DRM(vm_info)DRM_SYSCTL_HANDLER_ARGS; static int DRM(clients_info)DRM_SYSCTL_HANDLER_ARGS; +#if __HAVE_DMA static int DRM(bufs_info)DRM_SYSCTL_HANDLER_ARGS; +#endif struct DRM(sysctl_list) { const char *name; |