[PATCH] drm: drm_memory: fix compiler warning on 32-bit targets

2018-02-19 Thread David Lechner
The end field of struct resource is unsigned long, so on 32-bit targets, this is a 32-bit value. This results in a compiler warning of "warning: comparison of distinct pointer types lacks a cast". Fix it by making max_iomem unsigned long to match the end field. Fixes: (82626363a217 "drm: add func

Re: [PATCH] drm: drm_memory: fix compiler warning on 32-bit targets

2018-02-19 Thread David Lechner
On 02/19/2018 05:00 PM, David Lechner wrote: The end field of struct resource is unsigned long, so on 32-bit targets, this is a 32-bit value. This results in a compiler warning of "warning: comparison of distinct pointer types lacks a cast". Fix it by making max_iomem unsigned long to match the e