From patchwork Thu May 18 13:13:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 100096 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp719423qge; Thu, 18 May 2017 06:24:42 -0700 (PDT) X-Received: by 10.84.128.33 with SMTP id 30mr4882918pla.111.1495113882465; Thu, 18 May 2017 06:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495113882; cv=none; d=google.com; s=arc-20160816; b=Xs7Qhx6CHFpMvlqMmHRj4Bo7VHnKh7xawAp8oNoB5uYoWNeUoBc0XCo8wqhScLkQ6D /K4Cm1tVP/wsayFaJSVPR5CtSHEcSR/sQx2gL2RYWbFE0jfpPW83xMzcH5NA5dIbPB3X lo9STnqN5xVVdqX3snG/At23gQjCHhiGBt6C/v3AY4VCKmR4Go8675GD7fvJ+hyWTdZS aVav189I9FTGTxnffI80VFw1nV8mN9l0UgWPUnJ6/NgAxwFvScVfLGDoEfLkBzRsvEoo Lr3wvDzz7yYHYogmDfFVMR/5F1dqfAYied4RUw/Yw6VA2kZyTQd7KFYuOxc4VfViEES3 qlxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=phN8cRKcGwr9SVScr4lCicO4mxsh6LCmDwnkhkqhB2E=; b=Sb2VMOBNKwb7sjLYNWcGKkubdKKxMyxOraNukc4IaFYsvCPJGnvVXg5aXFr2YgQu4/ 9lP4umVyDYq+qz+/cWLV/NKhV0y0OYdNSbdb3Ot9/Hr5u+Wu43sz+dCyQ07PxwuYbqHS 2WgJ51EjWmR60Qxgpowf9RshA2LlrMYXfOKmumjh2sKJxP2JMZlertll6TB4BrwKBPdB yCFmsiJ/ssKCCDr8a8BK5bQYYpoyappLcWlZKufb8/j3RGX5j1v/k1T6wp3QB37KYxZU oSgbBqVSN0E1R0PiT0kkof8PAPTVY5+zI9VZdGbd9B8tDTjYKaRBixVTiWU2J3L5h1ju ucaw== 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 r4si5259787pgn.288.2017.05.18.06.24.42; Thu, 18 May 2017 06:24:42 -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 S934863AbdERNYf (ORCPT + 25 others); Thu, 18 May 2017 09:24:35 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:58123 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933079AbdERNY3 (ORCPT ); Thu, 18 May 2017 09:24:29 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MaXEr-1dQXwl2z5l-00KAXD; Thu, 18 May 2017 15:24:06 +0200 From: Arnd Bergmann To: Joerg Roedel Cc: Magnus Damm , Arnd Bergmann , Robin Murphy , Will Deacon , linux-kernel@vger.kernel.org Subject: [PATCH] iommu/dma: fix function declaration Date: Thu, 18 May 2017 15:13:57 +0200 Message-Id: <20170518132402.1355029-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kqJ95ehsBdAEFCCuDONR04zfbI5Arg5Dne/pu4VXSxN/EhEnOBY oPYdcn7AVHsnTWWUmT3JUeMjZVIQhFc/gW8a0SvOzc/G+E5Gioh9ebC48pdvkEj1R9VHbLN BKb/F8dhP26nBdaK8MFTf3H1zP+UYvxrQz2jkPKFbhLSGGRELQ3ZCjVKXce8GVoaPl+5NCy MgPQlqNcLmqrulP168qfA== X-UI-Out-Filterresults: notjunk:1; V01:K0:npK0O54YcuA=:rImDP+pP6XwIPos6W3LG9C xPeEQlcYvnjkEwaOokZsayArrKFOZh5oyEAEt6xeT6W8HNGpBRu2dW1l9s2Cotzj7wUHs61YM MP3M3cAYQVl7O0Tow5C1AzFQrta0srTgZdkRrYf+wz69Tym5+SQtTGJyRxz+Fnh1k0ccNtwzD aMA9q2AVDGwhCFvm0qHJjXTxLaVTzdO82qAVv1G4+KIuMsO8Y1TDDmNcxze3lLvcolsNFg/i2 bJdu0d/P5RNSO/I7iEzlm0i/SCxh8aodjTYYqBuPOfgUoXhCwroW4ZjliYfYf7nsVADcrpV0M 35EsIkGMubWVxwSUp8OFnLg5df5qWQqlHQ6mGZG3Jq9wgY2msjYMM1q6LpDGC3Fvhx5yHBG/4 JSMYdnuF6E/QFNIDFqL79bqT3uHnutc+uQnyQGhI5pqhZZaXCtP/5uohC/4JpWSDMWwudqp31 MriBh9Mb4WCOVCypu2pvsMAnI55fa6wiywTBs5q0j+MF/7HEHgapcrEYBFT0cylZbNDYJvLb1 Qtpes9Z5P7lGgeLVodrhbQZNpC19j61D8qIP6JJdA1RgfFMWs83bwvkuy9gMUaO+6JeztRY/c c28Nnh+g79iHUOX3FTn8H5Bki6v9msnJvHcNfMGR0u8qB8lNtOkXx6YKFFSLi5UycioOC/978 YY8IPYf2OqMx/sVbJ3ktVrcp03r2BaOQh/CMcZzZ3EahKVlmYzIIkA0We32qNEeGad6w= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Newly added code in the ipmmu-vmsa driver showed a small mistake in a header file that can't be included by itself without CONFIG_IOMMU_DMA enabled: In file included from drivers/iommu/ipmmu-vmsa.c:13:0: include/linux/dma-iommu.h:105:94: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] This adds a forward declaration for 'struct device', similar to how we treat the other struct types in this case. Fixes: 3ae47292024f ("iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops") Fixes: 273df9635385 ("iommu/dma: Make PCI window reservation generic") Signed-off-by: Arnd Bergmann --- include/linux/dma-iommu.h | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Acked-by: Robin Murphy diff --git a/include/linux/dma-iommu.h b/include/linux/dma-iommu.h index 4eac2670bfa1..92f20832fd28 100644 --- a/include/linux/dma-iommu.h +++ b/include/linux/dma-iommu.h @@ -78,6 +78,7 @@ void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list); struct iommu_domain; struct msi_msg; +struct device; static inline int iommu_dma_init(void) {