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

David Lechner david at lechnology.com
Mon Feb 19 23:08:04 UTC 2018


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 end field.
> 
> Fixes: (82626363a217 "drm: add func to get max iomem address v2")
> Signed-off-by: David Lechner <david at lechnology.com>
> ---

Superseded by v2. I also made a mistake :-o


More information about the dri-devel mailing list