diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 16:20:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 17:02:09 +0100 |
commit | edd1f2fe11ff77ab2a3169b9359e2ba69541a2f2 (patch) | |
tree | 80ff829dfb8f32a6f5056011782823b5a8b1c3df /include/drm | |
parent | drm/i915: Use phys_addr_t for the address of stolen memory (diff) | |
download | linux-edd1f2fe11ff77ab2a3169b9359e2ba69541a2f2.tar.xz linux-edd1f2fe11ff77ab2a3169b9359e2ba69541a2f2.zip |
drm/i915: Use fixed-sized types for stolen
Stolen memory is a hardware resource of known size, so use an accurate
fixed integer type rather than the ambiguous variable size_t. This was
motivated by the next patch spotting inconsistencies in our types.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170106152013.24684-3-chris@chris-wilson.co.uk
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/intel-gtt.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h index f49edecd66a3..b3bf717cfc45 100644 --- a/include/drm/intel-gtt.h +++ b/include/drm/intel-gtt.h @@ -3,8 +3,10 @@ #ifndef _DRM_INTEL_GTT_H #define _DRM_INTEL_GTT_H -void intel_gtt_get(u64 *gtt_total, size_t *stolen_size, - phys_addr_t *mappable_base, u64 *mappable_end); +void intel_gtt_get(u64 *gtt_total, + u32 *stolen_size, + phys_addr_t *mappable_base, + u64 *mappable_end); int intel_gmch_probe(struct pci_dev *bridge_pdev, struct pci_dev *gpu_pdev, struct agp_bridge_data *bridge); |