Skip to contentSkip to conversation

drm/i915: remove redundant #ifdef CONFIG_COMPAT

PATCH Applied Jani Nikula 2 participants 2 messages Oct 21, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: remove redundant #ifdef CONFIG_COMPAT

The whole file is only built with CONFIG_COMPAT=y.

---
 drivers/gpu/drm/i915/i915_ioc32.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/i915_ioc32.c +0 -2
index 2e0613e26251..176de6322e4d 100644
@@ -189,7 +189,6 @@ static drm_ioctl_compat_t *i915_compat_ioctls[] = {
 	[DRM_I915_ALLOC] = compat_i915_alloc
 };
 
-#ifdef CONFIG_COMPAT
 /**
  * Called whenever a 32-bit process running under a 64-bit kernel
  * performs an ioctl on /dev/dri/card<n>.
@@ -218,4 +217,3 @@ long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 
 	return ret;
 }
-#endif
Signature · 1 line
2.1.1
#1 lore raw
Quoted 3 lines · Jani Nikula

The whole file is only built with CONFIG_COMPAT=y.

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch