]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs()
authorGuenter Roeck <linux@roeck-us.net>
Mon, 4 May 2015 22:30:47 +0000 (15:30 -0700)
committerChris Zankel <chris@zankel.net>
Mon, 25 May 2015 23:03:16 +0000 (23:03 +0000)
commitf9f8bf3c4307fdc9ae9b1d3313b9bc8b9f9b83d2
treeb92817360abe79e5c59f037480efcde3cb9e3633
parent7ea797fb7fe5c494f95e30c47c07c23308fb498e
xtensa: Provide dummy dma_alloc_attrs() and dma_free_attrs()

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 <jcmvbkbc@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/dma-mapping.h