Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752822AbbEWEYW (ORCPT ); Sat, 23 May 2015 00:24:22 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:49677 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbbEWEYU (ORCPT ); Sat, 23 May 2015 00:24:20 -0400 Message-ID: <556000ED.7020203@roeck-us.net> Date: Fri, 22 May 2015 21:24:13 -0700 From: Guenter Roeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Chris Zankel CC: LKML , Geert Uytterhoeven , "linux-xtensa@linux-xtensa.org" , Max Filippov Subject: Re: [PATCH resend 3/5] xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs() References: <1430778649-28126-1-git-send-email-linux@roeck-us.net> <1430778649-28126-4-git-send-email-linux@roeck-us.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2517 Lines: 73 On 05/04/2015 03:35 PM, Chris Zankel wrote: > Hi Guenter, > > Sorry for the delay. Will work on it later today or tomorrow. > Hi Chris, I see this patch in -next, but still not in mainline. Are you planning to send it to Linus anytime soon ? Thanks, Guenter > Thanks, > -Chris > > > On Mon, May 4, 2015 at 3:30 PM, Guenter Roeck wrote: >> xtensa:allmodconfig fails to build with the following errors. >> >> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c: >> In function ‘gk20a_instobj_dtor_dma’: >> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:154:2: error: >> implicit declaration of function ‘dma_free_attrs’ >> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c: >> In function ‘gk20a_instobj_ctor_dma’: >> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:218:2: error: >> implicit declaration of function ‘dma_alloc_attrs’ >> >> Xtensa does not provide those functions at this time. >> Provide dummy implementations to avoid build errors. >> >> Acked-by: Max Filippov >> Signed-off-by: Guenter Roeck >> --- >> Please consider pushing this patch into mainline, or provide feedback >> on how to improve it to be acceptable. >> >> arch/xtensa/include/asm/dma-mapping.h | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/arch/xtensa/include/asm/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h >> index 172a02a6ad14..ba78ccf651e7 100644 >> --- a/arch/xtensa/include/asm/dma-mapping.h >> +++ b/arch/xtensa/include/asm/dma-mapping.h >> @@ -185,4 +185,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 /* _XTENSA_DMA_MAPPING_H */ >> -- >> 2.1.0 >> > -- 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/