From patchwork Thu Jun 18 12:17:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6636431 Return-Path: X-Original-To: patchwork-linux-mediatek@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8E8FC9F399 for ; Thu, 18 Jun 2015 12:19:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA05120827 for ; Thu, 18 Jun 2015 12:19:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBB8B2081F for ; Thu, 18 Jun 2015 12:19:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5YnQ-0000cZ-El; Thu, 18 Jun 2015 12:19:52 +0000 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5YmN-00005a-V4; Thu, 18 Jun 2015 12:18:48 +0000 Received: by pdjm12 with SMTP id m12so65540231pdj.3; Thu, 18 Jun 2015 05:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RApcss/qKT0g7kgb8aMJa8qOZzBgnpGmgjZEjk9Ie+U=; b=UpBF+vtu75+6CBbmMVWB56Bj8C2g51XWyChdW5avv3BDGw4cNp6JRg9PivKXuyEWtH Cwd1h6Nw2V0kCnFryJ7Q0I43GFk+4hqHwQcrgbicLN7VMJh51cWawPOUaui81Rdlnt/1 1pDo1hp9eey7Qr7VJbieM0wZ/fVdK7pI8cVfGqMth4w5+oOB75J2aW277ZGhqj7GrsI6 hEUkUVmF/Bw6IlAQ5eGowkLto8L2zPUxLupifE9N2avEVdOLp5Lt0lbpW88WJudEnp/I ULkt56X5z0w4pnWXYkV+MU2e6EqyVLciBtAcZoHlItYX35zd20vFkPv2z5E5WCe5sHXX 6Bsg== X-Received: by 10.68.136.42 with SMTP id px10mr20942704pbb.19.1434629907235; Thu, 18 Jun 2015 05:18:27 -0700 (PDT) Received: from localhost.localdomain ([122.169.128.34]) by mx.google.com with ESMTPSA id qw13sm7986650pab.14.2015.06.18.05.18.22 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jun 2015 05:18:25 -0700 (PDT) From: Sudip Mukherjee To: David Howells , Ulf Hansson , Matthias Brugger , Johan Hovold , Greg Kroah-Hartman Subject: [PATCH v2 2/7] mn10300: Provide dummy dma_alloc_attrs() and dma_free_attrs() Date: Thu, 18 Jun 2015 17:47:48 +0530 Message-Id: <1434629873-11668-3-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1434629873-11668-1-git-send-email-sudipm.mukherjee@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150618_051848_078087_A9178921 X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-am33-list@redhat.com, linux-usb@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Sudip Mukherjee , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP allmodconfig fails to build with following errors. drivers/media/platform/sti/bdisp/bdisp-hw.c: In function 'bdisp_hw_free_nodes': drivers/media/platform/sti/bdisp/bdisp-hw.c:132:3: error: implicit declaration of function 'dma_free_attrs' drivers/media/platform/sti/bdisp/bdisp-hw.c: In function 'bdisp_hw_alloc_nodes': drivers/media/platform/sti/bdisp/bdisp-hw.c:157:2: error: implicit declaration of function 'dma_alloc_attrs' mn10300 does not provide those functions at this time. Provide dummy implementations to avoid build errors. Signed-off-by: Sudip Mukherjee --- copied from https://lkml.org/lkml/2015/4/22/346 arch/mn10300/include/asm/dma-mapping.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/mn10300/include/asm/dma-mapping.h b/arch/mn10300/include/asm/dma-mapping.h index a18abfc..d589c5e 100644 --- a/arch/mn10300/include/asm/dma-mapping.h +++ b/arch/mn10300/include/asm/dma-mapping.h @@ -183,4 +183,17 @@ static inline int dma_get_sgtable(struct device *dev, struct sg_table *sgt, return -EINVAL; } +static inline void *dma_alloc_attrs(struct device *dev, size_t size, + dma_addr_t *dma_handle, gfp_t flag, + struct dma_attrs *attrs) +{ + return NULL; +} + +static inline void dma_free_attrs(struct device *dev, size_t size, + void *vaddr, dma_addr_t dma_handle, + struct dma_attrs *attrs) +{ +} + #endif