Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932580AbbFRMUn (ORCPT ); Thu, 18 Jun 2015 08:20:43 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:33530 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932257AbbFRMS2 (ORCPT ); Thu, 18 Jun 2015 08:18:28 -0400 From: Sudip Mukherjee To: David Howells , Ulf Hansson , Matthias Brugger , Johan Hovold , Greg Kroah-Hartman Cc: linux-am33-list@redhat.com, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org, Sudip Mukherjee 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1670 Lines: 53 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 -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/