Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2632056pxa; Mon, 17 Aug 2020 14:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA11Za6aj1UBrCVs3jrpes5MtkX08D4pkurZ+Nc36OHgMSzqQnHuxo5rCExamO96nkDEr/ X-Received: by 2002:a05:6402:148a:: with SMTP id e10mr16912650edv.25.1597701552987; Mon, 17 Aug 2020 14:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597701552; cv=none; d=google.com; s=arc-20160816; b=KvOfnwiXPcbDYzoo+G4OUQiRf1wuSYGPNU6Hf2u+shW1Vf1pLvYqHRl16la4jcb7Rc naTwzIPGRsTkOIOqKuSwS7WabAShLBVOIhsIqt5AQDm0Gm90+nmJRyusWZuFeIXPF5N2 FkWuNsnv79c9OaRpJ46gbfkk+jOXJ1wYF2Pt0v6t2OnE/Z9sx37tAGXRS7FegOjavqiU 1EYPTUVoHvomIhWpqpDuRnLrTMmbLyXYwIhmqVn/E72JZ0385ZFhydGai5/YvSVgzaMb YnjAWvY3Rtw3J11ysWI6bgmxQvAt1YS1+L08HD+gg1Zi8NVG/aG2NZTqErxEZbzI1Yn1 BaKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Fbo3Oj48B26C2HCHDXKLYzsn67yRAS0p1MnqoYtWuBY=; b=ClXLLnNebxTkNK1qiLIWF1xxKvvDVB5L1rnyWiudPhtaeNLoCD2rN+jjG9/9iWpsUd ZBKRospNTCImuBbJv4UTjglbsEULbkpYor4ArR0UTUgOdcJQICsWkjaKuvlKtHnMVKhO M1F+uDlaC0FMOGBZS0LONY8JcuB60v4pzHvPQs9IwrI9qDtx81ozohoemeGy5qRwE60l 2/k5BkUfjAG2nlO7ggr2Uivy+lx3B/nrvm4Tp+t+POPKqEJyLsswH5SYatzLKd+V28sm CVGgcQj36TFk/0Gv8I3ICobizlCZ0JjbCU9UzgOpM/HJEq6OgbGliV/x7yuQlILMbrDK QC8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nYZTbVyC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si11982163ejg.269.2020.08.17.14.58.49; Mon, 17 Aug 2020 14:59:12 -0700 (PDT) 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=default header.b=nYZTbVyC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730359AbgHQPd2 (ORCPT + 99 others); Mon, 17 Aug 2020 11:33:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730140AbgHQP3t (ORCPT ); Mon, 17 Aug 2020 11:29:49 -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 AF63323AC3; Mon, 17 Aug 2020 15:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597678189; bh=9NZH0q7CTWWwtkIduIXGOeXVGAzkqjgQw8Knk8ePCOU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nYZTbVyCyouKUDUxE/kzKtyHmeZDFRmnT2bZupOx2bYPJoPPwTifc9ChwMo4zi5We 61y7e/VWJxjBifrNyu26g7Tod83yxPxoYBkr34Sqt+HWF20kO3Ax11xea2mjbRkkzQ M9BlR5v82fIX64tsLUSgyhtDHYeqMpC2IgWZkieU= 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 5.8 247/464] PCI/ASPM: Add missing newline in sysfs policy Date: Mon, 17 Aug 2020 17:13:20 +0200 Message-Id: <20200817143845.627189873@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 b17e5ffd31b14..253c30cc19678 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -1182,6 +1182,7 @@ static int pcie_aspm_get_policy(char *buffer, const 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; } -- 2.25.1