Re: [PATCH] drm: fix drm_get_max_iomem type mismatch

2018-02-22 Thread Sean Paul
On Thu, Feb 22, 2018 at 12:47:51PM +0100, Arnd Bergmann wrote: > 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

[PATCH] drm: fix drm_get_max_iomem type mismatch

2018-02-22 Thread Arnd Bergmann
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) ( == ); This makes the local variable in