Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55edf41b authored by Jani Nikula's avatar Jani Nikula Committed by Sean Paul
Browse files

drm: define drm_compat_ioctl NULL on CONFIG_COMPAT=n and reduce #ifdefs



If we define drm_compat_ioctl NULL on CONFIG_COMPAT=n, we don't have to
check for the config everywhere.

Reviewed-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1478014844-27454-1-git-send-email-jani.nikula@intel.com
parent 0a97c81a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@ static const struct file_operations arcpgu_drm_ops = {
	.open = drm_open,
	.release = drm_release,
	.unlocked_ioctl = drm_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.poll = drm_poll,
	.read = drm_read,
	.llseek = no_llseek,
+0 −2
Original line number Diff line number Diff line
@@ -268,9 +268,7 @@ static const struct file_operations fops = {
	.open		= drm_open,
	.release	= drm_release,
	.unlocked_ioctl	= drm_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl	= drm_compat_ioctl,
#endif
	.poll		= drm_poll,
	.read		= drm_read,
	.llseek		= noop_llseek,
+0 −2
Original line number Diff line number Diff line
@@ -197,9 +197,7 @@ static const struct file_operations fops = {
	.open = drm_open,
	.release = drm_release,
	.unlocked_ioctl = drm_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.poll = drm_poll,
	.read = drm_read,
	.llseek = noop_llseek,
+0 −2
Original line number Diff line number Diff line
@@ -188,9 +188,7 @@ static const struct file_operations ast_fops = {
	.unlocked_ioctl = drm_ioctl,
	.mmap = ast_mmap,
	.poll = drm_poll,
#ifdef CONFIG_COMPAT
	.compat_ioctl = drm_compat_ioctl,
#endif
	.read = drm_read,
};

+0 −2
Original line number Diff line number Diff line
@@ -749,9 +749,7 @@ static const struct file_operations fops = {
	.open               = drm_open,
	.release            = drm_release,
	.unlocked_ioctl     = drm_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl       = drm_compat_ioctl,
#endif
	.poll               = drm_poll,
	.read               = drm_read,
	.llseek             = no_llseek,
Loading