Received: by 10.223.176.46 with SMTP id f43csp502634wra; Fri, 19 Jan 2018 22:39:02 -0800 (PST) X-Google-Smtp-Source: AH8x226EKH94Tw60ctTGnOqJvtZ8MfMCJ5D9vozW3L/8vCyJBCZKaRx2AD+cfw12rMos6YFd/dhD X-Received: by 10.99.96.23 with SMTP id u23mr1008490pgb.199.1516430342796; Fri, 19 Jan 2018 22:39:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516430342; cv=none; d=google.com; s=arc-20160816; b=Z7LkBZQVgJcww8qsIsFu2Y8KsgqFda8GNQ6VcVjf1ZDFhwAOd/rDZheTq/oRH7YA2j PgAYgIRFui4MX3Nh9CuxFexWo2ULqiB02FGY7iI0TITlpx0Eh6/OVHAKqBfEugxMgT+G ZHjHTgemha43uWuHBKbR/wHrb+JTb8re3ZXwwaYQHecpXXTn6HMc3lutxOqtcQn/oO26 /rOzcCFEimsK+o8TY6TJJyl/+Ef9tCo4w4Pr3HSgHybVXXEd+DN49yPHlQsIPpNv9XMg Lx+AwjJ+T/XfZs9qv3ayoFODnRfR1nfLpZrv2X8JqBju7Zj/d3+ZAtfqLfJ9Gao88uUR DslQ== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=2XTwATWXw8InnMVUBw7Tw94HCjDk9JwuzO+lpGknhps=; b=QK/GxXxUUXgxOKb5RPQD0zOl9CZEYizt7HVOvU9HaUTw2txtgJIGyq9V1+CgNC7zp8 X9DuJhwkq1NPug0E8el6MmJ2xXQ7tQW72LE0o/P2v4f41HbcfdQD3Ywue8H9k4b4imkQ 99uZvMBfcBO5AM2vS8jspCkzypZRxp0Y8hL6dnebVyGUKgOcpOCN36ytPvdff7I9e0Rz J4qs+lI0JBrF873qxjrfBYmWVWfHMNuEngI6bw1V+/dztVqOB6rsWFn6DvNSrS78xGVR BeW00IU79vlIru7OEFnr4+R67IB/aYLOPEU5fWyhsuYs4whXR1ev35TYH1+cs6QjX2aJ HUTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=A5i6YBZU; dkim=pass header.i=@codeaurora.org header.s=default header.b=RHwVZXa1; 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 c132si10988272pfg.259.2018.01.19.22.38.48; Fri, 19 Jan 2018 22:39:02 -0800 (PST) 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; dkim=pass header.i=@codeaurora.org header.s=default header.b=A5i6YBZU; dkim=pass header.i=@codeaurora.org header.s=default header.b=RHwVZXa1; 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 S1756182AbeATGgp (ORCPT + 99 others); Sat, 20 Jan 2018 01:36:45 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:45848 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754548AbeATGfu (ORCPT ); Sat, 20 Jan 2018 01:35:50 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 08232608CB; Sat, 20 Jan 2018 06:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516430150; bh=bA7CuJ6OASJUsqTbD2D7MYdTlGVs2Tn1NQU8dHeN/F4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A5i6YBZUbimHXOJOC5niy+ndJsiRFX0On8FA8qQZh1z1WYBTdLHHtsx5a5QysqhHy rIhA6OAFFSw5gb4fbmsv9172bpupUoOFSNuuRI/eaU95BBAcvmXX7gAkxUOanXuz8D cgkhlXX92qJy2DpdTq53nib0DdAQNwt9zf4qoIjU= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-poza.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: poza@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CF057608CB; Sat, 20 Jan 2018 06:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516430149; bh=bA7CuJ6OASJUsqTbD2D7MYdTlGVs2Tn1NQU8dHeN/F4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHwVZXa1lbKD8yz8bOfK9Dq/4XMRtSwLVC9eryjtM8WxN/XhBZ/ytI/YlpuDuRj4O 7eubfpp4AhXQvukR5ArEsSTTvfPmPFMIMy5mUN6fmc9UDKVHmWbA/cn4IKjRJj7hxH mDvdSVen8G2V2gcySGSGFIHk9udDAVW0DhpfDeTA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CF057608CB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=poza@codeaurora.org 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 Subject: [PATCH v7 5/7] PCI/AER: Unify aer error defines at single space Date: Sat, 20 Jan 2018 12:05:17 +0530 Message-Id: <1516430119-3825-6-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516430119-3825-1-git-send-email-poza@codeaurora.org> References: <1516430119-3825-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 This patch moves AER error defines to drivers/pci/pci.h. So that it unifies the error repoting codes at single place along with dpc Signed-off-by: Oza Pawandeep diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 6402f7f..216ee47 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -56,6 +56,7 @@ #include #include "apei-internal.h" +#include "../../pci/pci.h" #define GHES_PFX "GHES: " diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 3b79593..2e19953 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -343,7 +343,11 @@ static inline resource_size_t pci_resource_alignment(struct pci_dev *dev, void pci_enable_acs(struct pci_dev *dev); /* PCI error reporting and recovery */ -#define DPC_FATAL 4 +#define AER_NONFATAL 0 +#define AER_FATAL 1 +#define AER_CORRECTABLE 2 + +#define DPC_FATAL 4 void pci_do_recovery(struct pci_dev *dev, int severity); diff --git a/drivers/pci/pcie/aer/aerdrv_errprint.c b/drivers/pci/pcie/aer/aerdrv_errprint.c index 54c4b69..cd3ad55 100644 --- a/drivers/pci/pcie/aer/aerdrv_errprint.c +++ b/drivers/pci/pcie/aer/aerdrv_errprint.c @@ -22,6 +22,7 @@ #include #include "aerdrv.h" +#include "../../pci.h" #include #define AER_AGENT_RECEIVER 0 diff --git a/include/linux/aer.h b/include/linux/aer.h index 8f87bbe..3eac8ed 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -11,10 +11,6 @@ #include #include -#define AER_NONFATAL 0 -#define AER_FATAL 1 -#define AER_CORRECTABLE 2 - struct pci_dev; struct aer_header_log_regs { -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc., a Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.