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.)
This commit is contained in:
Ruslan Ermilov 2006-04-13 11:16:59 +00:00
parent 73e78194bf
commit 3f0430b34f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157719

View File

@ -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