Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp265002rdb; Sun, 14 Jan 2024 16:30:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIUc5TeIXemv32XujPDZBLNZghhCGLNb8HPUZNNwLqFeeCz0yWeHd3VwgpLDxzg59rFxb6 X-Received: by 2002:a17:906:79a:b0:a2b:2de2:8dd4 with SMTP id l26-20020a170906079a00b00a2b2de28dd4mr4360766ejc.15.1705278636170; Sun, 14 Jan 2024 16:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705278636; cv=none; d=google.com; s=arc-20160816; b=AkIX+MNYdNTbWeeVspfbbZHSkQ6PjjT76iuqHuND0zWX9e9YThSOK0J4W8OABq0AFB KHzSAlWjlZTnF4EMbd7+2ePavynLJfTuAMPqSvrjGFxGEs1W6A1/DVFhBJbQVVnvpQto syvtMvADZJBo8dMI4NRcF/saUDiIbVHDcbPqgCoKSdCp4otD4ulvOBbowbNWKiYd1B8f LRwbvlakZpanB2soqwmRWS8VByd7ovhnnz+LvwaL9ed5oTUxDCgOAHiDOZGAuZVLh/lN xS3lMn+GV4T61WYN/sAgM3qUhxppqRKRQMpw4Kb7qBVgZ/6K/TApcFh7dThr3Xlc3UuG A3mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=tFF0R9tSUFAxiIkXHMldkT8Ap/49/mMYo6Xn42vWYQE=; fh=pZpLv3JBu7ewThcXtBU3x3uGUeTqUHmHtpmV6AvLzGM=; b=mo+36bxxRqyGwOpfinfbfbQRhXW41PWsAMgB7jFP64MFvGETboLfQWz4f0rgCsbfSR JWrzYmQML+PntX8F38Lq/ylHNGvF8sxoZSjtzqydpNASDuHWCv/n4kql7OKfTIxd2WR/ E3ATBT1XKC0RQU+/B4TFnXA8txywMwbjIXEiOu+8FgxSKESHLuvUgCWur/j1cNlun/7I Chg5qzVFQUBcDE4daCCQBetJbiTI4bMiSy+Nk3R1VNZ0QoCC08AAeX6ILXPkCQtm6yFQ OqO+Kibx9DC8sw36SkYlTFTvPBJvxGnXSwLYQIFSTSKAjziq02JOdPk/ZhPzgemmz6+E K2sw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1894-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h14-20020a170906110e00b00a26f5e23c43si3281592eja.202.2024.01.14.16.30.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 16:30:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1894-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E37AF1F213BF for ; Mon, 15 Jan 2024 00:30:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BB9510E5; Mon, 15 Jan 2024 00:30:27 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7917A636 for ; Mon, 15 Jan 2024 00:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 40F0U80b83418623, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 40F0U80b83418623 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 15 Jan 2024 08:30:08 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.32; Mon, 15 Jan 2024 08:30:08 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 15 Jan 2024 08:30:08 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e4c4:c4f:4e4c:d23c]) by RTEXMBS04.realtek.com.tw ([fe80::e4c4:c4f:4e4c:d23c%5]) with mapi id 15.01.2507.035; Mon, 15 Jan 2024 08:30:08 +0800 From: Ping-Ke Shih To: Dmitry Antipov CC: Kalle Valo , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH] wifi: rtw88: use kstrtoX_from_user() in debugfs handlers Thread-Topic: [PATCH] wifi: rtw88: use kstrtoX_from_user() in debugfs handlers Thread-Index: AQHaQ8o7vXVFaLQDQEWucRHzE2OAMrDaDFIg Date: Mon, 15 Jan 2024 00:30:08 +0000 Message-ID: <01ee978cdb494ec9821fc7fcd34718d6@realtek.com> References: <20240110132930.438828-1-dmantipov@yandex.ru> In-Reply-To: <20240110132930.438828-1-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback > -----Original Message----- > From: Dmitry Antipov > Sent: Wednesday, January 10, 2024 9:29 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; Dmitry= Antipov > Subject: [PATCH] wifi: rtw88: use kstrtoX_from_user() in debugfs handlers >=20 > When 'sscanf()' is not needed to scan an input, prefer common > 'kstrtoX_from_user()' over 'rtw_debugfs_copy_from_user()' with > following 'kstrtoX()'. Minor adjustments, compile tested only. >=20 > Signed-off-by: Dmitry Antipov Acked-by: Ping-Ke Shih