]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ludev.git/commit
cmemk: Fix the dma_buf ops names on 4.12+ kernels
authorSuman Anna <s-anna@ti.com>
Thu, 13 Jul 2017 16:52:05 +0000 (11:52 -0500)
committerSam Nelson <sam.nelson@ti.com>
Mon, 20 Nov 2017 19:04:04 +0000 (14:04 -0500)
commitc7605ea9ea88bfbc6f667c2437516ab389732286
treebf1fc83a172b8003efe90cbfdfd7ec590e4cdc84
parent2ab022006c5a078f1039e7dd3459f0f5aa8ed4ec
cmemk: Fix the dma_buf ops names on 4.12+ kernels

The dma-buf ops .kmap_atomic, .kunmap_atomic, .kmap and .kunmap have
been renamed to .map_atomic, .unmap_atomic, .map and .unmap respectively
on 4.12+ kernels to avoid conflict with a kmap_atomic macro from the
Linux highmem.h header file. Fix the ops names in the current definitions
of cmem_dmabuf_ops, so that the CMEM module can be built against 4.12+
kernels properly.

[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/dma-buf.h?id=f9b67f0014cba18f1aabb6fa9272335a043eb6fd

Signed-off-by: Suman Anna <s-anna@ti.com>
src/cmem/module/cmemk.c