summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/radeon_state.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-04-13 11:16:59 +0000
committerru <ru@FreeBSD.org>2006-04-13 11:16:59 +0000
commit8165da5c32741e9e9a7c28d04b52892ee24505c7 (patch)
treeacf5c77afb7575cd5fe67885cca534b456ce9043 /sys/dev/drm/radeon_state.c
parent0337714208a1f1f458c71a2c3a6f5e62c5e3a6d5 (diff)
downloadFreeBSD-src-8165da5c32741e9e9a7c28d04b52892ee24505c7.zip
FreeBSD-src-8165da5c32741e9e9a7c28d04b52892ee24505c7.tar.gz
Re-apply changes to make this compile with -Wundef:
/usr/src/sys/modules/drm/radeon/../../../dev/drm/radeon_state.c:2976:5: "BITS_PER_LONG" is not defined (Previous revision has trashed my changes.)
Diffstat (limited to 'sys/dev/drm/radeon_state.c')
-rw-r--r--sys/dev/drm/radeon_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/radeon_state.c b/sys/dev/drm/radeon_state.c
index 34fe324..b427b31 100644
--- a/sys/dev/drm/radeon_state.c
+++ b/sys/dev/drm/radeon_state.c
@@ -2973,7 +2973,7 @@ static int radeon_cp_getparam(DRM_IOCTL_ARGS)
case RADEON_PARAM_STATUS_HANDLE:
value = dev_priv->ring_rptr_offset;
break;
-#if BITS_PER_LONG == 32
+#ifndef __LP64__
/*
* This ioctl() doesn't work on 64-bit platforms because hw_lock is a
* pointer which can't fit into an int-sized variable. According to
OpenPOWER on IntegriCloud