diff --git a/qos_auth/auth_ctl/qos_ctrl.c b/qos_auth/auth_ctl/qos_ctrl.c index 9f51767957a4711683c205281263daa550099e11..11d3f233996847e66c35a521ce86adff850ad661 100644 --- a/qos_auth/auth_ctl/qos_ctrl.c +++ b/qos_auth/auth_ctl/qos_ctrl.c @@ -456,12 +456,11 @@ static long ctrl_qos_operation(int abi, void __user *uarg) int ret = -1; #pragma GCC diagnostic push -#pragma GCC diagonstic ignored "-Wpointer-to-int-cast" switch (abi) { case QOS_IOCTL_ABI_ARM32: ret = copy_from_user(&qos_data, - (void __user *)compat_ptr((compat_uptr_t)uarg), + (void __user *)compat_ptr((compat_uptr_t)(uintptr_t)uarg), sizeof(struct qos_ctrl_data)); break; case QOS_IOCTL_ABI_AARCH64: diff --git a/ucollection/unified_collection_driver.c b/ucollection/unified_collection_driver.c index be70a171aaf3de1b46f0793ec75566b1fc70ffc8..f6998be2ba60f515b968a7a4a9ae335aa8f1af26 100644 --- a/ucollection/unified_collection_driver.c +++ b/ucollection/unified_collection_driver.c @@ -19,8 +19,7 @@ static long (*unified_collection_ioctl_cb[])(unsigned int cmd, void __user *argp static long unified_collection_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { - void __user *argp = u64_to_user_ptr(arg); - const char *comm = NULL; + void __user *argp = (void __user *)(arg); if ((_IOC_TYPE(cmd) >= ARRAY_SIZE(unified_collection_ioctl_cb)) || (unified_collection_ioctl_cb[_IOC_TYPE(cmd)] == NULL)) {