Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2655290pxa; Mon, 17 Aug 2020 15:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyux40UA8RpTGnXbGTWcWfl/IkkPFty7xSXkZalk2UQ7RaCLgfXAvdVLUONO6Q7ITpdryZi X-Received: by 2002:a17:906:5a8a:: with SMTP id l10mr16534992ejq.397.1597703959980; Mon, 17 Aug 2020 15:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597703959; cv=none; d=google.com; s=arc-20160816; b=T3EjE91biRefV2pVRGebe+q7/tB2QXbsTpq+n0+tPliBZ3J53x3c4hfuMyxxgJkE17 /QeI/yFttE1+DtTGZ7QjoQEGKQRSJbPlSIr01YwNYceq6VKTIi5oORCH2GR5+VWzNl6N viC313U7kVdGnQsBm8UZgXIvdBelIceJPRLi6EKha0GqKrPDdg1cFKxRyhMFcKj6ZUVf EnRJjHLqbUXIdzibbr6nrwmzJzG3Pjh10RU1HD0swZSmbGj9YBV7WVFXBGjxMeOAblPe eu1lu6E/AfRZCUeYqL2aUz/wwT+BuvmTFUsAPZeLmcuUwBkMynA03Hd4ug5hCVpskPUx 1z3A== 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=51qV5H2CFpgOHK/9L56DuFJPeDVVYu0NFdUW7UU85y0=; b=Y8dUDfIbZtqioLWFyYfSLEykEsTv/b58AvLx4xa2sjEXAk+HryW37Pj8iwwA6ca/wN Gzee2N08LNkDhn5YfnpIJezRREbTfh3ZLJ+8jWeFEi6w9s54I7d1CqzF+NZjvG199uCE B3vgkDxnvqZyavHmli4alaH8ALrsqahRdoKkey5vLK6zsuP6lMdmYI3qNkDsqEt5Ebbe RmkAhlEsQt9+mKYtex791reZFOxajR2y1E1QtwtnAefFGqGkpD9RF2OW+OZIJYJioS/d 15+IrVh5dOXuLopMZOSxrmnBHbNywFNxPAVr9I04JTdMO2+VdX8U0bGrR0ZTCkytDoK1 FskA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bTG8xst3; 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 cy23si12462252edb.311.2020.08.17.15.38.56; Mon, 17 Aug 2020 15:39:19 -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=bTG8xst3; 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 S2389740AbgHQRp0 (ORCPT + 99 others); Mon, 17 Aug 2020 13:45:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:49720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388788AbgHQQO2 (ORCPT ); Mon, 17 Aug 2020 12:14:28 -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 A2F462245C; Mon, 17 Aug 2020 16:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680867; bh=aHaqBn9NaqRET30HN6EPuCkfoeexiVbUPTNMAv09oUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bTG8xst31lpRl5EH0hHslMk87LhyVHZMhaBCiNTLbxduj11mr2YFOUWIu3p5L6QZK Jv9TowHqnoQr+DlFJ70CyzIFCZCj5gvnxmay/4oVyCEPvDvr5Tww+waPOMo3DPTKFZ MTVUccSwU4P48cNwlqWdWYuqWlCuCup51jEacGNA= 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.19 089/168] PCI/ASPM: Add missing newline in sysfs policy Date: Mon, 17 Aug 2020 17:17:00 +0200 Message-Id: <20200817143738.166408739@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143733.692105228@linuxfoundation.org> References: <20200817143733.692105228@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 6e50f84733b75..279f9f0197b01 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -1164,6 +1164,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