aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_gem.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2020-11-10 09:01:19 +0000
committerThomas Zimmermann <[email protected]>2020-11-10 09:38:16 +0000
commita3230bd79ca4d266c45a0cc8cdef6a38a113797a (patch)
treea3c254aac4210af5cdbdd8603006424842a8060b /drivers/gpu/drm/omapdrm/omap_gem.c
parentdrm/ast: Create chip AST2600 (diff)
downloadkernel-a3230bd79ca4d266c45a0cc8cdef6a38a113797a.tar.gz
kernel-a3230bd79ca4d266c45a0cc8cdef6a38a113797a.zip
drm/fb_helper: Use min_t() to handle size_t and unsigned long
On arm32: drivers/gpu/drm/drm_fb_helper.c: In function ‘fb_read_screen_base’: include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast ... drivers/gpu/drm/drm_fb_helper.c:2041:22: note: in expansion of macro ‘min’ 2041 | size_t alloc_size = min(count, PAGE_SIZE); | ^~~ drivers/gpu/drm/drm_fb_helper.c: In function ‘fb_write_screen_base’: include/linux/minmax.h:18:28: warning: comparison of distinct pointer types lacks a cast ... drivers/gpu/drm/drm_fb_helper.c:2115:22: note: in expansion of macro ‘min’ 2115 | size_t alloc_size = min(count, PAGE_SIZE); | ^~~ Indeed, on 32-bit size_t is "unsigned int", not "unsigned long". Fixes: 222ec45f4c69dfa8 ("drm/fb_helper: Support framebuffers in I/O memory") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions