summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_simple_kms_helper.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-22 12:47:51 +0100
committerSean Paul <seanpaul@chromium.org>2018-02-22 11:18:58 -0500
commit588717061002778158f7e4772b3dfc645612983d (patch)
tree417f2aaba758e88d2f21898d79ad0129e58c4dac /drivers/gpu/drm/drm_simple_kms_helper.c
parent4751cf733a1170876dd5ac46f225f5a25f59a67f (diff)
downloadop-kernel-dev-588717061002778158f7e4772b3dfc645612983d.zip
op-kernel-dev-588717061002778158f7e4772b3dfc645612983d.tar.gz
drm: fix drm_get_max_iomem type mismatch
When comparing two variables with min()/max(), they should be the same type: drivers/gpu/drm/drm_memory.c: In function 'drm_get_max_iomem': include/linux/kernel.h:821:16: error: comparison of distinct pointer types lacks a cast [-Werror] (void) (&max1 == &max2); This makes the local variable in drm_get_max_iomem make the type from resource->end. Fixes: 82626363a217 ("drm: add func to get max iomem address v2") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20180222114804.1394300-1-arnd@arndb.de
Diffstat (limited to 'drivers/gpu/drm/drm_simple_kms_helper.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud