]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Use resource_size_t for drm_get_resource_{start, len}
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Feb 2009 05:55:45 +0000 (16:55 +1100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:23:56 +0000 (14:23 +1000)
commit73c6e81ab62bf02d76adee0914d919e4d4c027b0
tree765a9bf6d3322ecfa42819622981baea2480ba41
parentc9248e237ef5b69432351a4d974804ac29a39978
drm: Use resource_size_t for drm_get_resource_{start, len}

The DRM uses its own wrappers to obtain resources from PCI devices,
which currently convert the resource_size_t into an unsigned long.

This is broken on 32-bit platforms with >32-bit physical address
space.

This fixes them, along with a few occurences of unsigned long used
to store such a resource in drivers.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_bufs.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/mga/mga_drv.h
drivers/gpu/drm/radeon/radeon_drv.h
drivers/gpu/drm/savage/savage_bci.c
include/drm/drmP.h
include/drm/drm_crtc.h