OSDN Git Service

drm: import DMA_BUF module namespace
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Wed, 27 Oct 2021 21:25:05 +0000 (23:25 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 29 Oct 2021 18:53:28 +0000 (20:53 +0200)
commit675053115e4e809643e12ca817dc9147562a70d6
tree580752cfab8f148a33813438a4397f44176c1cb9
parentbdf6aa22204e1250e217e79e77db38753a6731de
drm: import DMA_BUF module namespace

Today's -next fails building arm64 defconfig as follows:

ERROR: modpost: module drm_cma_helper uses symbol dma_buf_vunmap from
 namespace DMA_BUF, but does not import it.
ERROR: modpost: module drm_cma_helper uses symbol dma_buf_vmap from
 namespace DMA_BUF, but does not import it.

Fix this by importing DMA_BUF namespace into drm_cma_helper.ko. Also
fix the problem with drm_shmem_helper.ko.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Fixes: 4b2b5e142ff4 ("drm: Move GEM memory managers into modules")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211027212506.3418521-1-marcel@ziswiler.com
drivers/gpu/drm/drm_gem_cma_helper.c
drivers/gpu/drm/drm_gem_shmem_helper.c