From patchwork Wed Jul 5 10:48:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 13301950 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D65DC001B0 for ; Wed, 5 Jul 2023 10:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbjGEKs4 (ORCPT ); Wed, 5 Jul 2023 06:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232212AbjGEKsz (ORCPT ); Wed, 5 Jul 2023 06:48:55 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF46171A; Wed, 5 Jul 2023 03:48:53 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A7D215C02B0; Wed, 5 Jul 2023 06:48:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 05 Jul 2023 06:48:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm2; t=1688554132; x=1688640532; bh=bm 1rZDhTtyYs6D2nwqafptF7MtTTmEoZYqei0YwqitQ=; b=ciOCYmh1a7/03nnbDK XYTb4WI+eqF88UGTIfzfrP1O3/bT+y4I4MlW5bbu9X7m4BA0kUyYWvgpr7rs7PpJ sghd6RF+Zq0EG7m00DOtd9KwTtjdTA3hei4Srw5R32CFWC5jJvQz/oMVxQ728IId 7ow56qohaSAkVzue05PLENxQvRuIygwDWSmlEnUAw46R4OZHJTuWNno6wyrPf8bP cTGJPKzBnhHK3BGa1OZNVhNFHvdpYjnf0zc0SiAQpbUBOXNKtzwk+dihnHf96n03 ggPdLDFZ4cSbZWzE3h3974jvMhu7nOzBLIAn2nQN6bORdicQN5pWK3hU2XD1F4yc wAEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688554132; x=1688640532; bh=bm1rZDhTtyYs6 D2nwqafptF7MtTTmEoZYqei0YwqitQ=; b=XmEqP7yOa1x166q6mPPd1phvptpD2 NOs3Psw4ipDLyNMydkAHtNABMU/WMABF9QTe0Plkl+7mCA2j/wtBssjPlZMkdPxN DiGwZVNk414ykSDQ9VDiNrg7Zab96tq96ZGCSqTnEwmidTCez4bqmrunfpnTVLcl sGIdjTBMxihr4FrJINv1wd9X3W0UNsSZkEQ8ypn5KWJMaqP+uRlVOLAEYLyr+8BU DWKE4Q1Sp9sTXnC+ELOAG7LWBhzFQkWpXGzruhkViFJBEEYR7fgY9mACzgMffdmj wbYaG0GNsDihZ7yw8FJNBW0lCB04H1EmmOeMBsoNXRoXvYUr2pvUGzFxw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeigdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeegheejueehgeekje ffjeehhfejieelfeduudfhgeetieegueehvdeftefhgffhtdenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Jul 2023 06:48:45 -0400 (EDT) From: Alistair Francis To: marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, alistair23@gmail.com, dlemoal@kernel.org, Alistair Francis Subject: [PATCH] PCI: rcar-ep: Include linux/pci-epf.h instead of linux/pci-epc.h Date: Wed, 5 Jul 2023 20:48:24 +1000 Message-ID: <20230705104824.174396-1-alistair@alistair23.me> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org 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 Reviewed-by: Damien Le Moal --- 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 #include #include -#include +#include #include #include