Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp228300rdb; Thu, 18 Jan 2024 01:33:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFL69VFOP8DQfAlYI9TctBeIw8o4Mp/QpmxPL8CfRkm01H45CNHy22EucWCnw8YUQae5qbT X-Received: by 2002:a05:6359:6401:b0:175:7015:15d8 with SMTP id sh1-20020a056359640100b00175701515d8mr566822rwb.44.1705570418644; Thu, 18 Jan 2024 01:33:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705570418; cv=pass; d=google.com; s=arc-20160816; b=x6Jzq6z68QC1r4kyvC/My5qEYcZzv1q1zkooKLTrvR4wsAxnd6yncGw9rSkJG33ssa XxWcBXWlpZIncLAtecsgwkPRn8tvq32zgaVCGsAKv+wvfMF/AJqyBgQWhcmB0ZpqziMZ oVBsASZu2LdoApL6+NrAqCtpYMkRsTX5OJ7Qjoo95JlpiJDXdP1afwalgdPf+Y5lNqsO Wsx2pXfakXIFk3gKi9BhdwkHW6XLLStg198zbEXgfuCfAGgwnveQu56+N8h1Avdn35qL kHPI5B49uFFIWDPvvrPEbt9815ZdFG7WdASgNqcMOOCTwZ9VAHubaty3H1AelAFNUbG0 kOLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=frrF3CPqua12q6wwpXngKVZ7d6vnWIjTuTzWnw5S8tY=; fh=W+d0VTlB06MRf7YcZ9fsTH6rmN1qgblnN3a4fITKvd0=; b=mzukE26bc9KDtfQIOAtu1jzf1aNVm7+lHNNZ8GHSkWKGx4UyAAJzHAtcEuWwF6Dfky IXRdf2GMuarS7KI3k5XzbeMtJRzxVYET5WPxJe5MaYP3YXaCycBLv8en+Ii3mMdo7yFX 5Mq0xMlvL1P9tWhVSXSBOMnQHBSvUqDsL1Fux2xkropRu3kcOizVxHlDQrM0ByXkyeUV NKLtfl3BTLmpyqQi3SvVP6XXlP4Nab3glog/YAfsh6erzB1P305GKnO3L6VIBt3+G9aK nGOnk+qo+AAZK5pIpc8an35AQRnFzpl7mJ6LMAuxSk4xAOkmbe/DV9VMAK9mYtMrtYUb jWrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilgCEJMP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p21-20020a635b15000000b005c678d5eeccsi1155010pgb.158.2024.01.18.01.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 01:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilgCEJMP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2153-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E5895B22247 for ; Thu, 18 Jan 2024 09:33:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F6571F61A; Thu, 18 Jan 2024 09:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ilgCEJMP" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C94E1F612 for ; Thu, 18 Jan 2024 09:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705570383; cv=none; b=euz3ng380ntjfYaIj1y8RNnyRAb0IvgFYpp/lo+EI7POJLKnOJfFp9TmXN32GpprFubP8MHrvAAnDVyaxVyxIZdk89yWzoaQ3r58+SAosTII5bY13s7WtkFx1jG9Xl3yoSeNWCvxgUmEX76c754qAbkxlq/kPTYRHZRVNiYPbng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705570383; c=relaxed/simple; bh=0ACunoRTQeM+3VFKPQhuxzpSFvELTIsVlx3RGwY5SL4=; h=Received:DKIM-Signature:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:In-Reply-To:References:To: Cc:User-Agent:Message-ID:Date; b=b2WP6UQeDRbWfrumfhY0yktPooPuPfW8DxO1O8fWkXoOic+AgMPLQR48wwc4ZIXRgQEYz2KxSJpfE3QzDLin68ggItn2wrNsdbGmxauGFsQ1yZpkNL6ETZrc877R9g4Ebxfu/tTSoQSjVG3r6QBFq8Z4HPKep9HStZMaq6kXj6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ilgCEJMP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1FA3C433C7; Thu, 18 Jan 2024 09:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705570382; bh=0ACunoRTQeM+3VFKPQhuxzpSFvELTIsVlx3RGwY5SL4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ilgCEJMPeAzuxmrCF1DgK1sF2851fnqHbFtGGdk0vwGHHXWhIdqtdacSVdoXJ6LDC Cgs09CjJOSi2Z798fEtb0tEyB/F4HxV+MlMiZZU2tdrD1MxngTsoJbo9Wwyp9TVUeG xDQuzJ3oKelZfT3tV6coEDaRcH3FXydOMWMZdPxYZRxXrwKJ1T0zxkaZxy6pcpI6Zl XVlcZ3x+GMF3YMRlqj+85aVVCeFG5hOUIRglPqM696+4RzfwnMDQHKtpzRgdmzGHmh KM9R6w7JdOzW42uqsfGo+xg4uTt7Xd/dW3lFJPTLb59z7fQt0RCab3Nzd0v/K2Uw3P +LCnmet5orymQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: rtw88: use kstrtoX_from_user() in debugfs handlers From: Kalle Valo In-Reply-To: <20240110132930.438828-1-dmantipov@yandex.ru> References: <20240110132930.438828-1-dmantipov@yandex.ru> To: Dmitry Antipov Cc: Ping-Ke Shih , linux-wireless@vger.kernel.org, Dmitry Antipov User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170557037964.2797779.6273012892306957351.kvalo@kernel.org> Date: Thu, 18 Jan 2024 09:33:01 +0000 (UTC) Dmitry Antipov wrote: > 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. > > Signed-off-by: Dmitry Antipov > Acked-by: Ping-Ke Shih Patch applied to wireless-next.git, thanks. 23b8330156e5 wifi: rtw88: use kstrtoX_from_user() in debugfs handlers -- https://patchwork.kernel.org/project/linux-wireless/patch/20240110132930.438828-1-dmantipov@yandex.ru/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches