From 616aa9a0b2194925b4f1693f142afd9609920265 Mon Sep 17 00:00:00 2001 From: lingqiwei Date: Mon, 10 Aug 2026 11:47:00 +0800 Subject: [PATCH] remove qos log print to fix disable preempt problem Signed-off-by: lingqiwei --- qos_auth/auth_ctl/auth_ctrl.c | 4 ---- qos_auth/auth_ctl/qos_ctrl.c | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/qos_auth/auth_ctl/auth_ctrl.c b/qos_auth/auth_ctl/auth_ctrl.c index aae7a2c..8f78012 100644 --- a/qos_auth/auth_ctl/auth_ctrl.c +++ b/qos_auth/auth_ctl/auth_ctrl.c @@ -532,7 +532,6 @@ bool check_authorized(unsigned int func_id, unsigned int type) mutex_lock(&ua_idr_mutex); if (!ua_idr) { mutex_unlock(&ua_idr_mutex); - pr_err("[AUTH_CTRL] authority idr table missed, auth failed\n"); return authorized; } @@ -540,11 +539,9 @@ bool check_authorized(unsigned int func_id, unsigned int type) if (!auth) { if (uid != SUPER_UID) { mutex_unlock(&ua_idr_mutex); - pr_err("[AUTH_CTRL] no auth data for this pid = %d\n, tgid"); return authorized; } else if (init_super_authority(tgid)) { mutex_unlock(&ua_idr_mutex); - pr_err("[AUTH_CTRL] init super authority failed\n"); return authorized; } @@ -560,7 +557,6 @@ bool check_authorized(unsigned int func_id, unsigned int type) mutex_lock(&auth->mutex); if (auth->status == AUTH_STATUS_DEAD) { mutex_unlock(&auth->mutex); - pr_info("[AUTH_CTRL] not valid auth for pid %d\n", tgid); put_auth_struct(auth); return authorized; } diff --git a/qos_auth/auth_ctl/qos_ctrl.c b/qos_auth/auth_ctl/qos_ctrl.c index 73bc107..105c93a 100644 --- a/qos_auth/auth_ctl/qos_ctrl.c +++ b/qos_auth/auth_ctl/qos_ctrl.c @@ -492,7 +492,7 @@ 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" +#pragma GCC diagnostic ignored "-Wpointer-to-int-cast" switch (abi) { case QOS_IOCTL_ABI_ARM32: @@ -712,25 +712,19 @@ long do_qos_ctrl_ioctl(int abi, struct file *file, unsigned int cmd, unsigned lo unsigned int func_cmd = _IOC_NR(cmd); if (uarg == NULL) { - pr_err("%s: invalid user uarg\n", __func__); return -EINVAL; } if (_IOC_TYPE(cmd) != QOS_CTRL_IPC_MAGIG) { - pr_err("%s: qos ctrl magic fail, TYPE=%d\n", - __func__, _IOC_TYPE(cmd)); return -EINVAL; } if (func_cmd >= QOS_CTRL_MAX_NR) { - pr_err("%s: qos ctrl cmd error, cmd:%d\n", - __func__, _IOC_TYPE(cmd)); return -EINVAL; } #ifdef CONFIG_QOS_AUTHORITY if (!check_authorized(func_cmd, QOS_AUTH_FLAG)) { - pr_err("[QOS_CTRL] %s: pid not authorized\n", __func__); return -PID_NOT_AUTHORIZED; } #endif