]> git.baikalelectronics.ru Git - kernel.git/commit
drm/legacy: Fix type for drm_local_map.offset
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Apr 2020 21:59:26 +0000 (22:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Apr 2020 07:06:45 +0000 (09:06 +0200)
commit3f5ca7cc2503c7eafed9d10167a7d145c6cf4fba
tree82c984e2ef98b17c7f6b635991e4edebd76955fb
parent4cbfd238c2873dff7b0926911607b5de4bb44ad6
drm/legacy: Fix type for drm_local_map.offset

drm_local_map.offset is not only used for resource_size_t but also
dma_addr_t which may be of different sizes.

Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Fixes: ef1d514da8b8 ("drm: Remove the dma_alloc_coherent wrapper for internal usage")
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@gmail.com>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200402215926.30714-1-chris@chris-wilson.co.uk
include/drm/drm_legacy.h