From patchwork Thu Aug 20 09:21:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 265526 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08A1EC433DF for ; Thu, 20 Aug 2020 11:54:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1213207BB for ; Thu, 20 Aug 2020 11:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597924441; bh=yTgqS01c5E81zIFTtRw2JsMz2uz2ac0DcI9MfmuIV8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=SzxvP+Mw526ZsVdDU+O6IMGROuzKudSL7/jHKFYsgnlSQ/G/ofoMM+5gJnPQU4lzI 9LR8/a3Ni5JS68TixfuNU87TXmN/h3OOWjmtUeGyM8Hdz+9mvqCnv++ItU4oyT6HDw 0e3o2Y8GwQ53bPB5vsHlIoj37BTFh6TOLhDh6C/c= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730790AbgHTLtf (ORCPT ); Thu, 20 Aug 2020 07:49:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:48252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729821AbgHTKDm (ORCPT ); Thu, 20 Aug 2020 06:03:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4ABD22B4D; Thu, 20 Aug 2020 10:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597917822; bh=yTgqS01c5E81zIFTtRw2JsMz2uz2ac0DcI9MfmuIV8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xCgCJksrByjX4k+/b61KaX5j9hQwxT5E9y/diL3w+UwRsXOpw5aZ6UQMMzDe704/V 6uEyssubovCtt0Ekj8fzhtTby9uNzhPVmUPuIcC54OrLX9h+Y/TZjeOVv7av3MAdjk LyprDiwlRmJRSfEC+66cblsiGqNB3oCNaiShEvzY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiongfeng Wang , Bjorn Helgaas , Sasha Levin Subject: [PATCH 4.9 130/212] PCI/ASPM: Add missing newline in sysfs policy Date: Thu, 20 Aug 2020 11:21:43 +0200 Message-Id: <20200820091608.913952159@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091602.251285210@linuxfoundation.org> References: <20200820091602.251285210@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Xiongfeng Wang [ Upstream commit 3167e3d340c092fd47924bc4d23117a3074ef9a9 ] When I cat ASPM parameter 'policy' by sysfs, it displays as follows. Add a newline for easy reading. Other sysfs attributes already include a newline. [root@localhost ~]# cat /sys/module/pcie_aspm/parameters/policy [default] performance powersave powersupersave [root@localhost ~]# Fixes: 7d715a6c1ae5 ("PCI: add PCI Express ASPM support") Link: https://lore.kernel.org/r/1594972765-10404-1-git-send-email-wangxiongfeng2@huawei.com Signed-off-by: Xiongfeng Wang Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/pcie/aspm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 75551a781e887..5eae5f35dcc7b 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -832,6 +832,7 @@ static int pcie_aspm_get_policy(char *buffer, struct kernel_param *kp) cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]); else cnt += sprintf(buffer + cnt, "%s ", policy_str[i]); + cnt += sprintf(buffer + cnt, "\n"); return cnt; }