linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Smith <matthew.s3h@gmail.com>
To: greg@kroah.com
Cc: arve@android.com, riandrews@android.com,
	linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
	Matthew Smith <matthew.s3h@gmail.com>
Subject: [PATCH 3/3] staging: android: remove compat_get_ion_custom_data
Date: Fri, 16 Dec 2016 22:42:46 +0000	[thread overview]
Message-ID: <20161216224246.3946-3-matthew.s3h@gmail.com> (raw)
In-Reply-To: <20161216224246.3946-1-matthew.s3h@gmail.com>

After removing the ION_IOC_CUSTOM case, compat_get_ion_custom_data is no
longer required.

Signed-off-by: Matthew Smith <matthew.s3h@gmail.com>
---
 drivers/staging/android/ion/compat_ion.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/drivers/staging/android/ion/compat_ion.c b/drivers/staging/android/ion/compat_ion.c
index 8e6377b..a177641 100644
--- a/drivers/staging/android/ion/compat_ion.c
+++ b/drivers/staging/android/ion/compat_ion.c
@@ -105,22 +105,6 @@ static int compat_put_ion_allocation_data(
 	return err;
 }
 
-static int compat_get_ion_custom_data(
-			struct compat_ion_custom_data __user *data32,
-			struct ion_custom_data __user *data)
-{
-	compat_uint_t cmd;
-	compat_ulong_t arg;
-	int err;
-
-	err = get_user(cmd, &data32->cmd);
-	err |= put_user(cmd, &data->cmd);
-	err |= get_user(arg, &data32->arg);
-	err |= put_user(arg, &data->arg);
-
-	return err;
-};
-
 long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 {
 	long ret;
-- 
2.9.3

  parent reply	other threads:[~2016-12-16 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-16 22:42 [PATCH 1/3] staging: android: remove ION_IOC_SYNC Matthew Smith
2016-12-16 22:42 ` [PATCH 2/3] staging: android: remove ION_IOC_CUSTOM Matthew Smith
2016-12-16 22:42 ` Matthew Smith [this message]
2016-12-16 23:05 ` [PATCH 1/3] staging: android: remove ION_IOC_SYNC Laura Abbott
2016-12-16 23:27   ` Matthew Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161216224246.3946-3-matthew.s3h@gmail.com \
    --to=matthew.s3h@gmail.com \
    --cc=arve@android.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riandrews@android.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).