Skip to content

Commit b2ecb89

Browse files
ickledanvet
authored andcommitted
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 <[email protected]> Fixes: 8e4ff9b ("drm: Remove the dma_alloc_coherent wrapper for internal usage") Tested-by: Nathan Chancellor <[email protected]> # build Signed-off-by: Chris Wilson <[email protected]> Cc: Dave Airlie <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Linus Torvalds <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b513b0d commit b2ecb89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/drm/drm_legacy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ struct drm_sg_mem {
136136
* Kernel side of a mapping
137137
*/
138138
struct drm_local_map {
139-
resource_size_t offset; /**< Requested physical address (0 for SAREA)*/
139+
dma_addr_t offset; /**< Requested physical address (0 for SAREA)*/
140140
unsigned long size; /**< Requested physical size (bytes) */
141141
enum drm_map_type type; /**< Type of memory to map */
142142
enum drm_map_flags flags; /**< Flags */

0 commit comments

Comments
 (0)