[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230705104824.174396-1-alistair@alistair23.me>
Date: Wed, 5 Jul 2023 20:48:24 +1000
From: Alistair Francis <alistair@...stair23.me>
To: marek.vasut+renesas@...il.com, yoshihiro.shimoda.uh@...esas.com,
linux-pci@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: lpieralisi@...nel.org, kw@...ux.com, robh@...nel.org,
bhelgaas@...gle.com, alistair23@...il.com, dlemoal@...nel.org,
Alistair Francis <alistair@...stair23.me>
Subject: [PATCH] PCI: rcar-ep: Include linux/pci-epf.h instead of linux/pci-epc.h
pci-epc.h doesn't define the members of the pci_epf_header struct, so
trying to access them results in errors like this:
error: invalid use of undefined type 'struct pci_epf_header'
167 | val = hdr->vendorid;
Instead let's include pci-epf.h which not only defines the
pci_epf_header but also includes pci-epc.h.
Signed-off-by: Alistair Francis <alistair@...stair23.me>
---
drivers/pci/controller/pcie-rcar-ep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-rcar-ep.c b/drivers/pci/controller/pcie-rcar-ep.c
index f9682df1da61..5afc91d11eef 100644
--- a/drivers/pci/controller/pcie-rcar-ep.c
+++ b/drivers/pci/controller/pcie-rcar-ep.c
@@ -10,7 +10,7 @@
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/pci.h>
-#include <linux/pci-epc.h>
+#include <linux/pci-epf.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
--
2.40.1
Powered by blists - more mailing lists