From patchwork Thu May 11 11:35:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9721223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 729B360364 for ; Thu, 11 May 2017 11:37:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BCFE28654 for ; Thu, 11 May 2017 11:37:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F20C28667; Thu, 11 May 2017 11:37:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AF14628654 for ; Thu, 11 May 2017 11:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=qW/AKNtgXwmtqu0qnkW/SDiSchv2D4tVTLqV+hsoeZ8=; b=Ejh x7ZwZoI/ReyUL7nxhlZUM/BuH4bYjmNsO+7mWJa8gjWLDOmduga9wCcu2GhUvldENUnErxynAIpGE z8rkz+ClxqPbEpAXzdDJ2NU/bEZj2CMUwKav1mMQsJ2wjy88GQ87aFMCSFrCdfHMvElvBfqEhzeu7 GvxuBV7vDnBAvzS4HdlDmZe/qVIJ+nMP9MTuEnGkmeB9TzHhsG5P1V3H4NCelAK3EQfn9DAsE/Fb1 DnyVd+w4gSkuOlSZ6eD6gOqVtXph6Twt3ZWxAmRTtYjXQWGSSrGPfLKbLmviIpv1zOESEqfvJQa22 BiXx0zVE1884O66bhY975fLYqn05Tpg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d8mP7-0003s9-8T; Thu, 11 May 2017 11:37:09 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d8mOv-0003iB-Hu; Thu, 11 May 2017 11:36:59 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LwmRY-1e6Hr53gE4-016Q0k; Thu, 11 May 2017 13:36:24 +0200 From: Arnd Bergmann To: Joerg Roedel , Matthias Brugger Subject: [PATCH] iommu/mediatek: include linux/dma-mapping.h Date: Thu, 11 May 2017 13:35:51 +0200 Message-Id: <20170511113619.2596882-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:n1Qv3Rgy2HmuotKOB8O9iji5CC2jlASjgv9xDc77I4vNPulmDst OS7XvzCdyyzc0JQM1KeXqvrdtfcLCVMUZzC9rHfhrxy+O4CBAioAWsmsJExRWeOBZ5TE68c xr8XmewuRtZZVEmtXDhwqy/XjNbi0JccPGG2ehW2qIU4sDtokWY2pXfiHck3LxzajjPtI/I PZDKuXBNbtjwkqeJjrAxg== X-UI-Out-Filterresults: notjunk:1; V01:K0:kFfEr6EWrpE=:rxLP3tDffCpJw6WnHiPjiA 39c0HeVZcBUxYI4X4wnepjNF69KrhTNJQMDA7X5Jc6hHDE5tfFl6HE7VQDyOyFxh0f3Tm+Qgj D7Ts/ZcusogHXBovZcd/K0FYFK4YUTdSz9lT8FxkSR/0kD7QaWACmOqbK1sQNdhIadOYuxdqM oa5k1GIi0CWnWNsczFZpXknR5VtIIJC4fV/YEtwmGnGkMuDbiVIe3ooApZCqGhToBrZiqGzeh TiFgQFb4ypf0pMXiE8u490MY2akGbSMaI0Y6cCHtML69bEKC7RjT6peZ/syJLft8048F5bLpL l52EJIzp8gtifO6WVGYFRBPnjm9Ol0k6q2zYykRPoeTIk6mq+SKn/esJq+v11qzqtp5FGHbS6 MDidlFjrB3hRvfRUJcyJmmyBnnz8kOAMVCg5I4rW7FGwyMART+dlTB/ec0Oa0TEafOxXjZ4tv CIWSgDQzn38wiegOQTxuZT3a7GZJLFlYjMFo4cCybwAkF8WdswzLd2LvkGTCNVK5A5BOf8VNw nbSZWalHlWAdz9oC2l6alQteM+Xgx+Yq2ggQ84XGEWv4y3UWxVOeGTcWT9qf9TLqvERtnqwqH jhQM+jXCOj2WC7hf48OjJzEdSd9/O0sM4W1u99Vl8IMHRe01FKXpETqpP44GOGJTGHmKGo3/I 0vrLi3wz7/F0ycMDywoFrj6njZrKaKLcvXtVUTQ1Y+CP57x3qO8dCVeK2jw4ZcETLB/o= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170511_043657_927341_EADEDCA7 X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Honghui Zhang , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The mediatek iommu driver relied on an implicit include of dma-mapping.h, but for some reason that is no longer there in 4.12-rc1: drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_domain_finalise': drivers/iommu/mtk_iommu_v1.c:233:16: error: implicit declaration of function 'dma_zalloc_coherent'; did you mean 'debug_dma_alloc_coherent'? [-Werror=implicit-function-declaration] drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_domain_free': drivers/iommu/mtk_iommu_v1.c:265:2: error: implicit declaration of function 'dma_free_coherent'; did you mean 'debug_dma_free_coherent'? [-Werror=implicit-function-declaration] This adds an explicit #include to make it build again. Signed-off-by: Arnd Bergmann --- drivers/iommu/mtk_iommu_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index a27ef570c328..bc1efbfb9ddf 100644 --- a/drivers/iommu/mtk_iommu_v1.c +++ b/drivers/iommu/mtk_iommu_v1.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include