Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp520822rdb; Tue, 16 Jan 2024 07:33:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEin9N2MSKxd1QJbl/SDggBJu7sZ7MsYXbtFLm1S8W1Nxp7DyUeoUfQmBcnG74U14Ed410S X-Received: by 2002:a05:6a20:9f0a:b0:19a:e1f0:59cc with SMTP id mk10-20020a056a209f0a00b0019ae1f059ccmr4829591pzb.43.1705419205892; Tue, 16 Jan 2024 07:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705419205; cv=none; d=google.com; s=arc-20160816; b=rifJCRn6lCM4KO/c4AIxYqHv/SqzPtVSCvgHYOiZaxdykMnkyAwGv6neh+cDuBawzD OTSXEGNixpwigAyCzAGdTRMp476AZ+giSKUZ6pTBvBdxckLzee0HwSzBtb5Xg3Da3KRP Hfd0nZn3eJvI1sDbanC59i+zLJ4F+WGDQIGI85tO0CLyjNOvlxJP5CYLMiZ86P308Um2 GPfWenbSuljyR1Tn35m9N0GEhhDFtfICWbIzvqnGYU2XdpK8lzM07NL0dx6/fhbWf1ll AP80ih1IpCWJ74GWZfJneWppYrgJSbxyt2TQ7i1xc7agbMskMOj12cEZ75YCMfrROD2w QsFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=6UjzNExrhJIFniD3rVwAFlLQPyIlIruZoZLluJy+7iQ=; fh=AAGxH1+owAlqDHyTKqcVT3OJBanmoorZ1xMzTmyGyF4=; b=ZFHYI2/WgHQZXgQrEXx+rnwzO5QEC3tEKHlRGGI4+YC0K9+hxQIoR7aso+EGk+8RW2 1aBgtyHX0IWJWUxmlGV93RyqISHdwicSnYed0EgHBp/9bzfnQ6O3qOBJ8x783VpMzkCE WuH683mqVVdFJ4SOodXdUu1zflO9hFFWfCoy5JjE7r/S9KSheIJ/xg5cR7AUXQFQKUna HmmHK/YZPTAWvvCdrfrFLpeZSc+1ZhG4pCP3exDkE+P5A6j/F7XUuVBYnyV6vNX80VFk rIj4YtBpnZghGE2WSvFAX/UuIZeC3bXlbJWGLEmfUjAcZOa6OptbCrCMmdiCFfZ2PtWH /TEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fqnIVG0O; spf=pass (google.com: domain of linux-kernel+bounces-27528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27528-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ld20-20020a056a004f9400b006d09bca867fsi11685716pfb.121.2024.01.16.07.33.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 07:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fqnIVG0O; spf=pass (google.com: domain of linux-kernel+bounces-27528-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27528-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 819BB285CC0 for ; Tue, 16 Jan 2024 15:33:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 617221C2B2; Tue, 16 Jan 2024 15:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fqnIVG0O" 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 938551C293; Tue, 16 Jan 2024 15:33:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB42BC433C7; Tue, 16 Jan 2024 15:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705419196; bh=e/enmt38ETDU8AK3j17PZvcC/PRL8UejDeO1aaDrj9U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fqnIVG0Oae2WYkOudyJgYOG0msZHqLQj4embsHRm6Sb+KLObDGDf/1SyCi5PTbT45 m/RIZ8vIu9xJ4GaT5jXDH3Wk4OwnZwbabnwEIsEDgUdVDeqgLA73Q7XWSxnmzGneZF 5OBc7M6hW5bweBa++B01ysk/0DhhRwW0iKeRZQERTK88y+4B33ynlgIygVMA5GbSHq Wj7dQpLY2BnQJq2amzXAjUn8dRm9Kso1W1eN9GyrX7kjSHgv9B66f+mY8EbHys+k56 sNU5XcYNRHOsN3alW33OEWU6OtS2dkEGCYnTGZ17mREvjEUErkYK+KCQeUH3XJkmtQ K6Ls3cxysy6Rg== Date: Tue, 16 Jan 2024 07:33:14 -0800 From: Jakub Kicinski To: Li Zhijian Cc: linux-kernel@vger.kernel.org, Richard Cochran , netdev@vger.kernel.org Subject: Re: [PATCH 15/42] drivers/ptp: Convert snprintf to sysfs_emit Message-ID: <20240116073314.09dc408c@kernel.org> In-Reply-To: <20240116045151.3940401-13-lizhijian@fujitsu.com> References: <20240116041129.3937800-1-lizhijian@fujitsu.com> <20240116045151.3940401-1-lizhijian@fujitsu.com> <20240116045151.3940401-13-lizhijian@fujitsu.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 16 Jan 2024 12:51:24 +0800 Li Zhijian wrote: > Per filesystems/sysfs.rst, show() should only use sysfs_emit() > or sysfs_emit_at() when formatting the value to be returned to user space. > > coccinelle complains that there are still a couple of functions that use > snprintf(). Convert them to sysfs_emit(). > > > ./drivers/ptp/ptp_sysfs.c:27:8-16: WARNING: please use sysfs_emit If the patches don't depend on each other please post them separately. Series should only be used if there are dependencies and the same maintainer is expected to apply all patches. The ptp change should be reposted after the merge window, we don't take cleanups during the merge window.