From patchwork Thu Jun 2 15:39:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9151263 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 D7FA060221 for ; Fri, 3 Jun 2016 00:19:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C95A128330 for ; Fri, 3 Jun 2016 00:19:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD0AD28332; Fri, 3 Jun 2016 00:19:52 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCFE228330 for ; Fri, 3 Jun 2016 00:19:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15AFC6EC96; Fri, 3 Jun 2016 00:19:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 040DA6EC13; Thu, 2 Jun 2016 15:41:48 +0000 (UTC) Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8500CA4I9LR710@mailout4.w1.samsung.com>; Thu, 02 Jun 2016 16:41:45 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-8b-575053b87caf Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1A.5A.05254.8B350575; Thu, 2 Jun 2016 16:41:45 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O85008BCI6FXK50@eusync1.samsung.com>; Thu, 02 Jun 2016 16:41:44 +0100 (BST) From: Krzysztof Kozlowski To: Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Stefano Stabellini , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Steven Miao , Mark Salter , Aurelien Jacquiot , Mikael Starvik , Jesper Nilsson , Yoshinori Sato , Richard Kuo , Tony Luck , Fenghua Yu , Konrad Rzeszutek Wilk , Geert Uytterhoeven , James Hogan , Michal Simek , Ralf Baechle , David Howells , Ley Foon Tan , Jonas Bonn , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Arnd Bergmann , Olof Johansson , Geoff Levand , Martin Schwidefsky , Guan Xuetao , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Boris Ostrovsky , David Vrabel , Juergen Gross , Muli Ben-Yehuda , Bjorn Helgaas , David Airlie , Joerg Roedel , David Woodhouse , Andrew Morton , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, adi-buildroot-devel@lists.sourceforge.net, linux-c6x-dev@linux-c6x.org, linux-cris-kernel@axis.com, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-metag@vger.kernel.org, linux-mips@linux-mips.org, linux-am33-list@redhat.com, nios2-dev@lists.rocketboards.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, discuss@x86-64.org, linux-pci@vger.kernel.org, linux-xtensa@linux-xtensa.org, dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-rdma@vger.kernel.org, iommu@lists.linux-foundation.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [RFC v3 26/45] h8300: dma-mapping: Use unsigned long for dma_attrs Date: Thu, 02 Jun 2016 17:39:28 +0200 Message-id: <1464881987-13203-27-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1464881987-13203-1-git-send-email-k.kozlowski@samsung.com> References: <1464881987-13203-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzVSa0xTZxjed75zA9fkrDo9wcRkjf5QoxN1y5s5mVuiftEZOiVhIdFZ5QRQ WqEFoqKxo6KgwAqsjkFtUCsUpFwloTWIrYSCDLVhY+i4GLxw66DidE4QbSH797zP87zXvDyW DzBhfIImRdJqVIkKNpTunPV0r3HsUUavc56lIdsxzYGnVs9C7t0OCsw1VSy8LWjjoK6ohgF/ RiYGa0Y8eH/JpGGyLAdBuW0XDE79hWAiY5qG2b99GH5/OclCfkUhhvPVQxycufA1mIe7EDx7 2EyBdTQCXL2vOOg0XqbgQt0SeP3SEEi8U4ehtGUTTFhGMAxWVzIw7C7GYH6wHmZ+9VOQXVLL wfhIOJRdeYrgqbGPhYn+VgTFLf001D/uYSC/pYuD1hIjBbZr1RgunbHS0J7nZ2DydBML/qwJ BrqdZhbKn9gx5NQ2BkKDNzhVYG2jqYCDEutPNAzduU9Bl8XDwjN3Lg1Tj95hMF4yYCi6dzNw j5mfMWT22Smo6LJz4DY1I5j+d5bZEkOeuCwUyWw2sqTKUoVId48Xk+k3BYj8Wa0k44XGAJWX SxHXkJsll0f1NHEU93PE/3wfKa1PJSWmHkRyHL8h0mBbpfw8JvTLWCkxIU3SfhqxPzS+zFfF JPkWHPWNZdF6VBxyDoXworBR7Lw7xczjxeL9gRr2HArl5cJVJDrvnWXmgx8p8cXrGTboYoUN YkO5dc61SKgTRf1jLw4KWDghjnreoCBeKOwUO+yjc2VpYYVoGzlPB7FMIOLAIws9326Z2NFW OOcJCfDWmoo5Xi5sF72GBsaIZKXog0r0sZR6MEl3IE4dvlanUutSNXFrDx5R16P5r/unCV1p +8KNBB4pPpTZVkZGyxlVmu6Y2o1EHisWyVJ2K6PlsljVseOS9sgP2tRESedGS3lasUR20TkZ JRfiVCnSYUlKkrT/qxQfEqZHVnIIaRZHtfR1bGN7n390wJUQ1n69cdON2jHTbXtre+zDOMPs N28fZL1auC0mJTKNT8/e8dXekU/Sy6+eHMty+CMazad3CLdLD59MHh4E5fKt7PdNCZpk9erN 455k6Q/B2Vyfz0bpv3WdqkxLX/1ff9KtTt/uz3pfhK9sivwuz1S0TEHr4lXhq7BWp3oP9pTb 1XEDAAA= X-Mailman-Approved-At: Fri, 03 Jun 2016 00:19:26 +0000 Cc: hch@infradead.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Split out subsystem specific changes for easier reviews. This will be squashed with main commit. Signed-off-by: Krzysztof Kozlowski --- arch/h8300/kernel/dma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/h8300/kernel/dma.c b/arch/h8300/kernel/dma.c index eeb13d3f2424..3651da045806 100644 --- a/arch/h8300/kernel/dma.c +++ b/arch/h8300/kernel/dma.c @@ -12,7 +12,7 @@ static void *dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, - struct dma_attrs *attrs) + unsigned long attrs) { void *ret; @@ -32,7 +32,7 @@ static void *dma_alloc(struct device *dev, size_t size, static void dma_free(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, - struct dma_attrs *attrs) + unsigned long attrs) { free_pages((unsigned long)vaddr, get_order(size)); @@ -41,14 +41,14 @@ static void dma_free(struct device *dev, size_t size, static dma_addr_t map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { return page_to_phys(page) + offset; } static int map_sg(struct device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction direction, - struct dma_attrs *attrs) + unsigned long attrs) { struct scatterlist *sg; int i;