From 2a942238d9637ddd7b4595acf34e5e7ba6e0fb07 Mon Sep 17 00:00:00 2001 From: sunchanglong Date: Tue, 27 Feb 2024 20:37:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Team=EF=BC=9AH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2feca9028aad1df3bed9088844362aab8671cbb8 --- qos_auth/auth_ctl/qos_ctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qos_auth/auth_ctl/qos_ctrl.c b/qos_auth/auth_ctl/qos_ctrl.c index 9f51767..11d3f23 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: -- Gitee From 8fcfc5a41580db73cab4b8659f5a58596d092c78 Mon Sep 17 00:00:00 2001 From: 17786508361 Date: Wed, 20 Mar 2024 10:12:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8D=95=E5=8F=B7=EF=BC=9A#I99XSE=20?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=EF=BC=9Ahidumper=20--cpuusage=20=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=97=A0=E6=B3=95=E6=9F=A5=E8=AF=A2cpu=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BF=A1=E6=81=AF=E3=80=82=20=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E8=B7=9F=E5=9B=A0=EF=BC=9A4.1release=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E6=94=B9=E5=8F=98cpu=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E9=9C=80=E9=80=82=E9=85=8D=E4=BF=AE=E6=94=B9=E3=80=82?= =?UTF-8?q?=20=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=EF=BC=9A=E5=90=88?= =?UTF-8?q?=E5=85=A54.1=E7=BB=9F=E4=B8=80=E6=9F=A5=E8=AF=A2=E8=8E=B7?= =?UTF-8?q?=E5=8F=96cpu=E6=96=B9=E6=A1=88=E3=80=82=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BC=96=E7=A8=8B=E8=A7=84=E8=8C=83=E8=87=AA?= =?UTF-8?q?=E6=A3=80=EF=BC=9AY=20=E6=98=AF=E5=90=A6=E7=BC=96=E7=A8=8B?= =?UTF-8?q?=E4=B8=94=E9=AA=8C=E8=AF=81=E9=80=9A=E8=BF=87=EF=BC=9AY=20?= =?UTF-8?q?=E5=BD=B1=E5=93=8D=E7=9A=84=E8=AE=BE=E5=A4=87=E4=B8=8E=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E8=8C=83=E5=9B=B4=EF=BC=9Alaphone=20=E5=9B=A2?= =?UTF-8?q?=E9=98=9F=EF=BC=9AH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I612ea0d522966f4ea754d58bff051d60645c700b --- ucollection/unified_collection_driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ucollection/unified_collection_driver.c b/ucollection/unified_collection_driver.c index be70a17..f6998be 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)) { -- Gitee