Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2970283imm; Thu, 17 May 2018 00:48:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8m20a3tserJrFlhf2k/eenVNBISo/yKnN2OVrjioz2sB21teUEHh5WYQJ+ho36ie4m9ro X-Received: by 2002:a62:ed12:: with SMTP id u18-v6mr4235528pfh.127.1526543305898; Thu, 17 May 2018 00:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526543305; cv=none; d=google.com; s=arc-20160816; b=qq0F0Pzu20udB5YVEhMGkXqmARtk6O0vOcu6xAbizA0e/P8Z9XlvE3GnlIXMRnUjCU 3SaveOFMpel6kP93Ue6ZRj6i8Jm3MQL9Fa8NI0/gZ3ALGHG4qKeg3frJEMx+meZ0MZJk IyzTkIGobwvfVlgBhFYTaSUVWhNiPq3M1jyx7Mi7rQRyqIXU7AJmioEgd0V9NKjlKfSw O1/RBIvDMXBRTqOoQ3GW4n11i5EaNKF8IUes+DCmxeqx+SOqLyn4yZNcHoMatcdtha+9 faBdMjQtf0Ue2eIqDXKfZQMTb4bl4EHyTIUo/GFDvshas63/0KG+Sf/yFodn3cvqCDB3 Onkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=roFUSHTZPcGs7mcDXt+LeVtLwCQNDcpxVQ0ns4WuP2U=; b=oDmIktWaIwLX29OEuZZ7xm8wWxPRHx43qKkIYcps337vfQOYK11ayCge98MQ+VT/xL 4rN0/204Y0fCr1+vqeUxQYSnzrrkzLbU0mKHf4LZp9VUUlGpMWQhS+nnl3rIzFgOr3JI SKMAQwB+v5ruLmPxlq64SDHPNJS604WlR/gbgYckT4M2enCdmFBUekc1QGa9dLLBmE1D LWX81dQzIVS2WDZ4Y3wSb0m3S2eDWKvOtk+d5QC+lQcy1QxTSL+753kHF+wzBEQ9pYYT tbKNiMlirA++T8nRcQAZGUN7/DwlgRV6wh7Bc61f8ioPLoXhm7FULB4nQ6GYv5b5Zm08 wNFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12-v6si3327053pgn.377.2018.05.17.00.48.11; Thu, 17 May 2018 00:48:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbeEQHqO (ORCPT + 99 others); Thu, 17 May 2018 03:46:14 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:57577 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752415AbeEQHnQ (ORCPT ); Thu, 17 May 2018 03:43:16 -0400 X-IronPort-AV: E=Sophos;i="5.49,409,1520924400"; d="scan'208";a="17447181" Received: from ironmsg03-sd.qualcomm.com ([10.53.140.143]) by alexa-out.qualcomm.com with ESMTP; 17 May 2018 00:43:15 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8895"; a="163842601" Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg03-sd.qualcomm.com with ESMTP; 17 May 2018 00:43:13 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id 91A971F2C; Thu, 17 May 2018 03:43:12 -0400 (EDT) From: Oza Pawandeep To: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Cc: Oza Pawandeep , Bjorn Helgaas Subject: [PATCH v17 3/9] PCI/AER: Rename error recovery interfaces to generic PCI naming Date: Thu, 17 May 2018 03:43:05 -0400 Message-Id: <1526542991-5291-4-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526542991-5291-1-git-send-email-poza@codeaurora.org> References: <1526542991-5291-1-git-send-email-poza@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename error recovery interfaces with "pcie_" prefix so they can be made non-static. Signed-off-by: Oza Pawandeep [bhelgaas: move declaration to later patch, leave functions static] Signed-off-by: Bjorn Helgaas Reviewed-by: Keith Busch diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index b56f9c1..a2d7cc7 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -476,14 +476,14 @@ static pci_ers_result_t reset_link(struct pci_dev *dev) } /** - * do_fatal_recovery - handle fatal error recovery process + * pcie_do_fatal_recovery - handle fatal error recovery process * @dev: pointer to a pci_dev data structure of agent detecting an error * * Invoked when an error is fatal. Once being invoked, removes the devices * beneath this AER agent, followed by reset link e.g. secondary bus reset * followed by re-enumeration of devices. */ -static void do_fatal_recovery(struct pci_dev *dev) +static void pcie_do_fatal_recovery(struct pci_dev *dev) { struct pci_dev *udev; struct pci_bus *parent; @@ -533,14 +533,14 @@ static void do_fatal_recovery(struct pci_dev *dev) } /** - * do_nonfatal_recovery - handle nonfatal error recovery process + * pcie_do_nonfatal_recovery - handle nonfatal error recovery process * @dev: pointer to a pci_dev data structure of agent detecting an error * * Invoked when an error is nonfatal. Once being invoked, broadcast * error detected message to all downstream drivers within a hierarchy in * question and return the returned code. */ -static void do_nonfatal_recovery(struct pci_dev *dev) +static void pcie_do_nonfatal_recovery(struct pci_dev *dev) { pci_ers_result_t status; enum pci_channel_state state; @@ -611,9 +611,9 @@ static void handle_error_source(struct pcie_device *aerdev, pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, info->status); } else if (info->severity == AER_NONFATAL) - do_nonfatal_recovery(dev); + pcie_do_nonfatal_recovery(dev); else if (info->severity == AER_FATAL) - do_fatal_recovery(dev); + pcie_do_fatal_recovery(dev); } #ifdef CONFIG_ACPI_APEI_PCIEAER @@ -678,9 +678,9 @@ static void aer_recover_work_func(struct work_struct *work) } cper_print_aer(pdev, entry.severity, entry.regs); if (entry.severity == AER_NONFATAL) - do_nonfatal_recovery(pdev); + pcie_do_nonfatal_recovery(pdev); else if (entry.severity == AER_FATAL) - do_fatal_recovery(pdev); + pcie_do_fatal_recovery(pdev); pci_dev_put(pdev); } } -- 2.7.4