From patchwork Sun May 7 20:33:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9715399 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E1AE360385 for ; Sun, 7 May 2017 21:45:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0A5B26530 for ; Sun, 7 May 2017 21:45:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1250267EC; Sun, 7 May 2017 21:45:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DDFF26530 for ; Sun, 7 May 2017 21:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751276AbdEGVml (ORCPT ); Sun, 7 May 2017 17:42:41 -0400 Received: from mout.web.de ([212.227.15.14]:55684 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbdEGVmA (ORCPT ); Sun, 7 May 2017 17:42:00 -0400 Received: from [192.168.1.3] ([77.182.161.211]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LvB6w-1e6TiA25is-010La5; Sun, 07 May 2017 22:33:57 +0200 To: linux-pm@vger.kernel.org, Greg Kroah-Hartman , Kevin Hilman , Len Brown , "Rafael J. Wysocki" , Ulf Hansson Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] PM / Domains: Use seq_putc() in pm_genpd_summary_one() Message-ID: <32253f14-d602-7036-0256-6ca9439fcf23@users.sourceforge.net> Date: Sun, 7 May 2017 22:33:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K0:ISZ/3z3IQJP13ZOIYS7nD+u3v7TLm6rF5p3pzlkUmGid4UAfbKb J9X9q595AHItHtbsHj2o4khUrODRdWGmlhEOSyAUXqT7sTjGFcWf8wPqymHor2Yc4hYlkwQ 5a3ElKfqsDCTux55sZYToz2V5dY9R8sPDDKVvmcgqvKptfPyDpBsw0jHGmRWi0hvBd06h1n ggt3wal1C4bke1ersaDRg== X-UI-Out-Filterresults: notjunk:1; V01:K0:2dFds2jjpbM=:FTaZy58L8Z1grGdi1aTD8Q VLFFPJBRHsxBZY9dDyfpnDMaALAK4wLdLaTOoeAGo0LtVGtiXaFri6gnEbn1NKJdsZW5JJrQR v+ioXk0EdBbWRoSylohoLLzcT6FE+YKsSZsB9dHes8+ik8X4VWs1gN7ieFyzrRgPxtbJ5rSrn XAkqD+VvsB2hG5DHaEsTSclfKXVPaaCEAOJPwMAA7E06buhkyGj1gaP1UsSAeq/OXvBZtUuB9 bZTFtkvNLSrYPCBk2MmCwVffKd9JWgrwKe72NPX2tXyEJfg7N6HdjQquQMeFFTYJTd4zOnweO mqWcp7GIpRqgNwR+leRHggwslEqQeFKiHpkdYgk4ajr5o2pTWrfLg8+Ze6QLgfMMFUGVNwWvQ qzdxIhCoTsL62/ojsRSA6KeH6neSKdUn+5hCTeYAH+I3J1Z+3d4x4frXqzPF9iDZvOwOifDE0 zDlyUTro9/coXI3xzFuz2dpGn2QJQ4N98z/NLr5irSXp75KlCWGxSRrovm8ihZ16zCIaWTXU5 ayL5/d184d+eVfAJen9BZNvoPTIaaigejkwDbiAOUz68nmyrT0N6hjJXFH+Dt1NtWzfj54ZwI PBe5Ooo5xPtxwEF1rsQgerd659XZUcQLCGoHdPy9CtoREoU9c+3jgtELgCRq5cAoeY24spvtk bbcBG2sSH3BJ3/HYturYR0SH9XoCw8bDTqoIaBeBp9ConBPNN+OrZamzwC6xU6anukSteU6oh PYBe7yXVVr1gGdB6XuuhpQ2ks9V5dQoQ2qy28ubr3fuEEBwLYKPcnMOyrfDty7rXEYOlWyIz7 hE3pgD2 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 7 May 2017 22:26:19 +0200 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/base/power/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index da49a8383dc3..b971fbb404be 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -2266,7 +2266,7 @@ static int pm_genpd_summary_one(struct seq_file *s, kfree(kobj_path); } - seq_puts(s, "\n"); + seq_putc(s, '\n'); exit: genpd_unlock(genpd);