Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
}
EXPORT_SYMBOL(rockchip_ion_client_create);
+#ifdef CONFIG_COMPAT
struct compat_ion_phys_data {
compat_int_t handle;
compat_ulong_t phys;
return err;
};
+#endif
static int rockchip_ion_get_phys(struct ion_client *client, unsigned long arg)
{
pr_debug("%s(%d): cmd=%x\n", __func__, __LINE__, cmd);
if (is_compat_task()) {
+#ifdef CONFIG_COMPAT
switch (cmd) {
case COMPAT_ION_IOC_GET_PHYS: {
struct compat_ion_phys_data __user *data32;
default:
return -ENOTTY;
}
+#endif
} else {
switch (cmd) {
case ION_IOC_GET_PHYS: