From: CMY Date: Wed, 4 Mar 2015 01:27:51 +0000 (+0800) Subject: rk: ion: fix compilation warning without CONFIG_COMPAT X-Git-Tag: firefly_0821_release~4263^2~25^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=772873d13f9cf7599ab60099cd43e54826949021;p=firefly-linux-kernel-4.4.55.git rk: ion: fix compilation warning without CONFIG_COMPAT Signed-off-by: CMY --- diff --git a/drivers/staging/android/ion/rockchip/rockchip_ion.c b/drivers/staging/android/ion/rockchip/rockchip_ion.c index f75dc757f9b3..ea7b7334a6e5 100755 --- a/drivers/staging/android/ion/rockchip/rockchip_ion.c +++ b/drivers/staging/android/ion/rockchip/rockchip_ion.c @@ -193,12 +193,11 @@ static int rockchip_ion_get_phys(struct ion_client *client, unsigned long arg) static long rockchip_custom_ioctl (struct ion_client *client, unsigned int cmd, unsigned long arg) { - long ret; - pr_debug("%s(%d): cmd=%x\n", __func__, __LINE__, cmd); if (is_compat_task()) { #ifdef CONFIG_COMPAT + long ret; switch (cmd) { case COMPAT_ION_IOC_GET_PHYS: { struct compat_ion_phys_data __user *data32;