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: 9721221 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 6DAA760364 for ; Thu, 11 May 2017 11:37:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6852028665 for ; Thu, 11 May 2017 11:37:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B3D228667; Thu, 11 May 2017 11:37:04 +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 8AE5A28665 for ; Thu, 11 May 2017 11:37:03 +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=R4k5jtC0x4O1BepEMdFEEzMlOL4rIa/NAQVYDYH7MtY=; b=Pfa Zx3H7wapyfEI+lGuV4I51rcK5KlZPemISoQeMtl9tTGxUVlREN0zHo2B+n7p3pmO7gosDpsF9GHQA 3McmaAG6YqcV6CQyTJsVbosm5aIUK0R6uilgiyyIVXBV9B8I1kjik11Dg5cSx9jwRIWt4ew1+9Kp/ NDdLcw5dQhmkEZbf81Z4FcFkZSo22NDZheZT7XUp7iZR0JCkmZ8JZ0gNfEZS3/FbW66dabMQivZny J8DXOWfCS6RSC+rZ0KCEqtxwk4zZFsFnUXA7w/jRYD84DIXKHPB82aJSELGiDh5GfzC/iDcW+pISU bsDrEoh4uhU8Xo6TQuuB4ywuYKrFKKA==; 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 1d8mOz-0003j8-I5; Thu, 11 May 2017 11:37:01 +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-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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