Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1883389rwb; Thu, 29 Sep 2022 03:38:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4L5pMJwszuW/Omtz4W/BHhDU3/is3TO6tPP8sdi+4L85pqy/i888BikNBU7BTHO11/qJBD X-Received: by 2002:a17:903:2443:b0:178:221d:c599 with SMTP id l3-20020a170903244300b00178221dc599mr2902191pls.100.1664447925377; Thu, 29 Sep 2022 03:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664447925; cv=none; d=google.com; s=arc-20160816; b=AX4WkQJuY1d83UlS1DrkMYKr+ncLl3Kixf20aTTXnaZpNJyV0M3li/SQqRF8WWFiHe ePOj+rGPfN1L50b0uM79FfKx8phtY/qZFzjGQVbTUmVm6uaBD89TIFwKGU1/eSiAdjmu qIrJ56CgIkyLADLtUZCcbGk2bnuFzqMz+oIVqPIv/0ggN7Qr2/shYOdcVQgxHH26W3E6 wUYIxbjPj8QEF0FCuWS+583qoVZqezq/kpUHMnvbeZ0VDm8rEPlOBPXaAlSlgtGQuMcY Ur3ugILbMq+nN6HebmsB+16xapBOluVW6xATqQmMXhWaRgZ8BFZDPhos4Cxy+IcdZUA0 DfqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=5PVKtdAufJPLgXqEz0VqRH12snUvYmmbNoGKux3XpFk=; b=HzKCLUwgriBXfHDWGUioqbdGuzGbw1n/B8EdK7cTCBUaMWoX6t0L1y4mtTFQPqirX6 M+UROc0qFAe2+3mSWLKcvbqVUwpyEF2VDid8OHnVdRPNX5nSs6+5ryIgHxjGZQm+RcfA goFM/6fnhm4AfaaQFEgahdh1ts9ZFJnWPXqyoMS8ZTreKfzLZtfDEBQiZYoNoKTUZngN DBnXAUU1IbdubZgxfqsWMMRCO3k6JrN5c08LzYVC+nBMXaE3+EoVhU5AMtwGzrv5+ZX+ 7HF5Q7UjdiYy+Y0EoeRefcFEGL/rWvXQQFn/3evZ9QTXokhsROOD+tz/0tFEf++E8/n6 zTLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a63c002000000b004398688a988si7486816pgg.382.2022.09.29.03.38.33; Thu, 29 Sep 2022 03:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235071AbiI2KV0 (ORCPT + 99 others); Thu, 29 Sep 2022 06:21:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233870AbiI2KVP (ORCPT ); Thu, 29 Sep 2022 06:21:15 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BB341A397 for ; Thu, 29 Sep 2022 03:21:15 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD5C22309; Thu, 29 Sep 2022 03:21:21 -0700 (PDT) Received: from [10.57.66.102] (unknown [10.57.66.102]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F403D3F73B; Thu, 29 Sep 2022 03:21:12 -0700 (PDT) Message-ID: <0007218f-96f0-c348-0dfb-7cb54f014b1c@arm.com> Date: Thu, 29 Sep 2022 11:21:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH linux-next] coresight: use sysfs_emit() to instead of scnprintf() To: James Clark , zhangsongyi.cgel@gmail.com Cc: mike.leach@linaro.org, leo.yan@linaro.org, alexander.shishkin@linux.intel.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, zhang songyi , Zeal Robot , Mathieu Poirier References: <20220927115136.259926-1-zhang.songyi@zte.com.cn> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/09/2022 15:56, James Clark wrote: > > > On 27/09/2022 12:51, zhangsongyi.cgel@gmail.com wrote: >> From: zhang songyi >> >> Follow the advice of the Documentation/filesystems/sysfs.rst and show() >> should only use sysfs_emit() or sysfs_emit_at() when formatting the value >> to be returned to user space. >> >> Reported-by: Zeal Robot >> Signed-off-by: zhang songyi >> --- >> drivers/hwtracing/coresight/coresight-stm.c | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) >> > > Reviewed-by: James Clark I have queued this locally for now, will push it once the next cycle is out. Suzuki