diff options
-rw-r--r-- | drivers/char/drm/radeon_ioc32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/drm/radeon_ioc32.c b/drivers/char/drm/radeon_ioc32.c index 04126c2e79ab..56decda2a71f 100644 --- a/drivers/char/drm/radeon_ioc32.c +++ b/drivers/char/drm/radeon_ioc32.c | |||
@@ -349,6 +349,8 @@ static int compat_radeon_irq_emit(struct file *file, unsigned int cmd, | |||
349 | DRM_IOCTL_RADEON_IRQ_EMIT, (unsigned long)request); | 349 | DRM_IOCTL_RADEON_IRQ_EMIT, (unsigned long)request); |
350 | } | 350 | } |
351 | 351 | ||
352 | /* The two 64-bit arches where alignof(u64)==4 in 32-bit code */ | ||
353 | #if defined (CONFIG_X86_64) || defined(CONFIG_IA64) | ||
352 | typedef struct drm_radeon_setparam32 { | 354 | typedef struct drm_radeon_setparam32 { |
353 | int param; | 355 | int param; |
354 | u64 value; | 356 | u64 value; |
@@ -373,6 +375,9 @@ static int compat_radeon_cp_setparam(struct file *file, unsigned int cmd, | |||
373 | return drm_ioctl(file->f_dentry->d_inode, file, | 375 | return drm_ioctl(file->f_dentry->d_inode, file, |
374 | DRM_IOCTL_RADEON_SETPARAM, (unsigned long) request); | 376 | DRM_IOCTL_RADEON_SETPARAM, (unsigned long) request); |
375 | } | 377 | } |
378 | #else | ||
379 | #define compat_radeon_cp_setparam NULL | ||
380 | #endif /* X86_64 || IA64 */ | ||
376 | 381 | ||
377 | drm_ioctl_compat_t *radeon_compat_ioctls[] = { | 382 | drm_ioctl_compat_t *radeon_compat_ioctls[] = { |
378 | [DRM_RADEON_CP_INIT] = compat_radeon_cp_init, | 383 | [DRM_RADEON_CP_INIT] = compat_radeon_cp_init, |