Use a long as the opaque type so that it matches the size of a pointer
on both 32-bit and 64-bit platforms.
This commit is contained in:
parent
37580b343a
commit
77b72a2216
@ -2400,7 +2400,7 @@ int radeon_cp_getparam( DRM_IOCTL_ARGS )
|
||||
break;
|
||||
case RADEON_PARAM_SAREA_HANDLE:
|
||||
/* The lock is the first dword in the sarea. */
|
||||
value = (int)dev->lock.hw_lock;
|
||||
value = (long)dev->lock.hw_lock;
|
||||
break;
|
||||
case RADEON_PARAM_GART_TEX_HANDLE:
|
||||
value = dev_priv->gart_textures_offset;
|
||||
@ -2409,7 +2409,7 @@ int radeon_cp_getparam( DRM_IOCTL_ARGS )
|
||||
return DRM_ERR(EINVAL);
|
||||
}
|
||||
|
||||
if ( DRM_COPY_TO_USER( param.value, &value, sizeof(int) ) ) {
|
||||
if ( DRM_COPY_TO_USER( param.value, &value, sizeof(&value) ) ) {
|
||||
DRM_ERROR( "copy_to_user\n" );
|
||||
return DRM_ERR(EFAULT);
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ int sis_final_context(int context)
|
||||
|
||||
if (i < MAX_CONTEXT) {
|
||||
set_t *set;
|
||||
unsigned int item;
|
||||
ITEM_TYPE item;
|
||||
int retval;
|
||||
|
||||
DRM_DEBUG("find socket %d, context = %d\n", i, context);
|
||||
@ -377,7 +377,7 @@ int sis_final_context(int context)
|
||||
set = global_ppriv[i].sets[0];
|
||||
retval = setFirst(set, &item);
|
||||
while (retval) {
|
||||
DRM_DEBUG("free video memory 0x%x\n", item);
|
||||
DRM_DEBUG("free video memory 0x%lx\n", item);
|
||||
#if defined(__linux__) && defined(CONFIG_FB_SIS)
|
||||
sis_free(item);
|
||||
#else
|
||||
@ -391,7 +391,7 @@ int sis_final_context(int context)
|
||||
set = global_ppriv[i].sets[1];
|
||||
retval = setFirst(set, &item);
|
||||
while (retval) {
|
||||
DRM_DEBUG("free agp memory 0x%x\n", item);
|
||||
DRM_DEBUG("free agp memory 0x%lx\n", item);
|
||||
mmFreeMem((PMemBlock)item);
|
||||
retval = setNext(set, &item);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user