From patchwork Fri Sep 15 15:57:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 140833 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1404151vqi; Fri, 15 Sep 2023 17:36:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGQVXk80NT3AJBfU1jOpWK96GtOteyzyxetK9q4WEjMAHFYR/k98KUMhEbFZsQbLiHq2wzX X-Received: by 2002:a17:903:120c:b0:1c4:2641:7744 with SMTP id l12-20020a170903120c00b001c426417744mr3788414plh.25.1694824587960; Fri, 15 Sep 2023 17:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694824587; cv=none; d=google.com; s=arc-20160816; b=KkW5ZRPzPzxDeYEPXxnjLkSz6WmVBKqvUxc7lfTEsMo3bzH1G3YlBfGOJpERK2TYaX cw3cR4Qt8Ebng5TMIdTRoBZK5gOcFqoNzMFUIOwL9pZmadDSGR0aOsj2wjwSYRtDS3MF ydkqxwSeaSmn9BiFbFjW+Iw4nxRnEYSjwpqMyMA9HFeTvWtUWdybE+/4aAl132MiRfj6 LXZ9BVJl+pISLcKHbiAwGm3UJ6vgcCKPWK4gU9iyoxsnnnbEdOJF6g8LEMHc70YbN2FL 7BbteHxBgtqVjqA7q/Tw/hFM8lLiS35+LvSOYfjx5F0gkjWD11xQA4D+PhUAqitZ1Ju6 9gDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CjIdZR0F3dx/snSV1cYWZGGePBrvB6q+wdg4Np1TuAE=; fh=hZLmt6afxROhcWMieefqgqDfx+oilLKHrk2svuRRdTk=; b=DUX2QuPXxmDx0o1TjQ0j8ju9QfOaWIGbIPS2QOjuTaCMo1iyR5oJG8mDxBhTpqLX2b q7O/DE8ajmQeNcwfOyKBsFkw/4m5u/uhUKi+OpsDj9CCp0OIfIIwzNhjLRAYnlsiBsG3 qgjKB5C1G6Fl+TzWPNoLy+ejVRg/BCtXAuoa7oKjHbu/n5foW08xKFUaT+xeAEhd6rOB YX/wIHT7I5sB6GAcJCjl564QdezG9N7MH5UYZrVjPHkSO8JblUWYZHbsJKa11NSWcMl1 Ff/QMawTSogA1LZPe0FLzK9I4+2LzWFYROX1e528CAr6gExaujLy6OUEJdp/5RU+Hcpd 6YPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NIDYjfdh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p6-20020a170902780600b001bc434b9d95si63311pll.156.2023.09.15.17.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 17:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NIDYjfdh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 82A388065CAF; Fri, 15 Sep 2023 08:59:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236444AbjIOP6t (ORCPT + 30 others); Fri, 15 Sep 2023 11:58:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236316AbjIOP61 (ORCPT ); Fri, 15 Sep 2023 11:58:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4646610D9; Fri, 15 Sep 2023 08:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694793502; x=1726329502; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NbHznSzo9cAXWJrSxFdkec/xGu/0KxsGpf1kX0P/iv0=; b=NIDYjfdhtQjbYH7xdIniMywUKRIFlesNT+VfT2BCDMDTxUpTz0pc1uqJ vzntkmrRFTa+r/NCZn7tFbPE2qAMk+JLeMYg5GHzrT3sJzMHzSWNBAUxU qBiBXuGBXKvoC62Qm0Vz0OmAlUVkDHyOBFN1HeQCy1Ouy3xUNP4pwU9pn qLlvMW/gukJ47dzaplb3eqigfSsafCQ2hSd47PsRQ743AluGsP/eFwkc+ keP/80xC33LXUH9zDhPc1Kh9r4Cu5zOujrsfod3UsWR2oGaqdKeW3zNGT 8ipk2akUh+r8/fIAm6Y3Zb4U957vqVBKzIyV9wCCMDxyPSTjq3xnVQq5f Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="369594668" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="369594668" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 08:58:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="745036707" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="745036707" Received: from srdoo-mobl1.ger.corp.intel.com (HELO ijarvine-mobl2.ger.corp.intel.com) ([10.252.38.99]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 08:58:20 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-pci@vger.kernel.org, Bjorn Helgaas , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 7/7] PCI/ASPM: Convert printk() to pr_*() and add include Date: Fri, 15 Sep 2023 18:57:52 +0300 Message-Id: <20230915155752.84640-8-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230915155752.84640-1-ilpo.jarvinen@linux.intel.com> References: <20230915155752.84640-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:59:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777152387177257645 X-GMAIL-MSGID: 1777152387177257645 Convert printk(KERN_INFO ...) to pr_info() and add the correct include for it. Signed-off-by: Ilpo Järvinen --- drivers/pci/pcie/aspm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index fb25892d15b7..855feaefd7f4 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -1367,10 +1368,10 @@ static int __init pcie_aspm_disable(char *str) aspm_policy = POLICY_DEFAULT; aspm_disabled = 1; aspm_support_enabled = false; - printk(KERN_INFO "PCIe ASPM is disabled\n"); + pr_info("PCIe ASPM is disabled\n"); } else if (!strcmp(str, "force")) { aspm_force = 1; - printk(KERN_INFO "PCIe ASPM is forcibly enabled\n"); + pr_info("PCIe ASPM is forcibly enabled\n"); } return 1; }