Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3987756pxb; Tue, 25 Jan 2022 00:46:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxy0gpMSlhEPURfv20W0NPq9BC6oe2j3sYdOprDk2EC4x9DDFSaNB0BOIIofSzKc/oSV5Fl X-Received: by 2002:a17:902:e88a:b0:14b:3aa4:4d17 with SMTP id w10-20020a170902e88a00b0014b3aa44d17mr11156656plg.160.1643100413366; Tue, 25 Jan 2022 00:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643100413; cv=none; d=google.com; s=arc-20160816; b=FD/uRIoIavHxfyUY+Oto2fRqPrVRX/4jtkYitxu7XSZZwQxvCCgGzifTChspUN92/b wh/cdiOvvqUbrIur6KDVhIr/DU+IPvVU864kvhFpr9Ha34HpeVhsVQvL6vbgqQeZE59U Uy3MwvUfoX0rXJhyqlKufG+a0ao0SP0rtgXiiJlyOKhrIJmwVZ5gZoyU1ZxvXwSRFIbS 76BitStyJOp6Zl5ADamgDGbYdkcOVCLnWfOxIIhbOlCxFcTCSAII+ZkQyO7KcoRz7oTl 9s12yV8+IsE+i6lPX/7l0qYhKj2spt8lgQ/TRTIjV2Q0nO3Yl9HE0Dj5VsB39YSeXprC WrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=AYg99rtmRl9GS4yUuo5uLAiqb7quz2ZcDW/VMq+g7Kc=; b=LkQXMgwUke7+wEEoU8AP/1yY987kgQykmh4dTk56cYyto2Pqj78bRLbyuujk1owPLm EdjFDBJsAysy2kpFR2B3zjBH2+faZDBQCbX2xOdA7fXH6rn0l2NaE8jhIpZS7J0He+0q Yif+lwcq2I6X1ngZSbOPGS2QFZ4uZmT6AF4KqTmnY6PQLs09NK7o8JzRkiYmpE/T+WHr dKfxTC9NniRmIHcmuPOfm1391M0mgeTwz75hQMcDTnr/SFpPPptEIbmSnSf9BM9avyCB MqHzfWTMk3dUPZYPjBn7hw3kUe2NB1KWgNCodwPkKY+3mfPYEE9yHiu3mgbsJfFOEVIq NEcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nkvd5G5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si5071547plc.83.2022.01.25.00.46.38; Tue, 25 Jan 2022 00:46:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nkvd5G5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1319570AbiAYDJI (ORCPT + 99 others); Mon, 24 Jan 2022 22:09:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S3423872AbiAYCiM (ORCPT ); Mon, 24 Jan 2022 21:38:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03262C061763; Mon, 24 Jan 2022 16:51:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B48D2B81229; Tue, 25 Jan 2022 00:51:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63C7EC340E4; Tue, 25 Jan 2022 00:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643071916; bh=AYg99rtmRl9GS4yUuo5uLAiqb7quz2ZcDW/VMq+g7Kc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Nkvd5G5CvqgnP0RHpwCGmlz7ri/u3HmRQ7YqqvRhXbxf6WGS2LRXTVVHVaALs2Zmm 5MaYkMuKA76K8ae7aF9Ur0vvAQXRWW2zAMIQb54bHPMe4+XFSyHx3QALKEeudvxc2p ABrYcKVyUJwQyPYW0umWNriQKC824SUVd9o9U6FCYlHu0zB2pIZc9d+dybQtgAEXFp fIGf7kbtEfMU34zFVlkt/wJUXGucoOHxJdeCzQoTmXDfIVKvQN3yZfndv5wXqjsU73 zW/t9fkJJNvroxfOC7izEtKt3MUSmEDIr+sPQsIHgC5C/X1H9NDxSCoC3FMDnWfEbA w/td4kRTpRxRg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1634280331-4150-1-git-send-email-wangqing@vivo.com> References: <1634280331-4150-1-git-send-email-wangqing@vivo.com> Subject: Re: [PATCH RESEND] clk-si5341: replace snprintf in show functions with sysfs_emit From: Stephen Boyd Cc: mike.looijmans@topic.nl, Qing Wang To: Michael Turquette , Qing Wang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 24 Jan 2022 16:51:54 -0800 User-Agent: alot/0.10 Message-Id: <20220125005156.63C7EC340E4@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Qing Wang (2021-10-14 23:45:28) > coccicheck complains about the use of snprintf() in sysfs show functions. >=20 > Fix the following coccicheck warning: > drivers/clk/clk-si5341.c:1471: WARNING: use scnprintf or sprintf. > drivers/clk/clk-si5341.c:1486: WARNING: use scnprintf or sprintf. > drivers/clk/clk-si5341.c:1501: WARNING: use scnprintf or sprintf. > drivers/clk/clk-si5341.c:1516: WARNING: use scnprintf or sprintf. >=20 > Use sysfs_emit instead of scnprintf or sprintf makes more sense. >=20 > Signed-off-by: Qing Wang > --- Applied to clk-next