From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421AbdEKLhD (ORCPT ); Thu, 11 May 2017 07:37:03 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:63445 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753303AbdEKLhC (ORCPT ); Thu, 11 May 2017 07:37:02 -0400 From: Arnd Bergmann To: Joerg Roedel , Matthias Brugger Cc: Arnd Bergmann , Honghui Zhang , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.9.0