diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 10:20:11 -0500 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-06 11:02:09 -0500 |
| commit | edd1f2fe11ff77ab2a3169b9359e2ba69541a2f2 (patch) | |
| tree | 80ff829dfb8f32a6f5056011782823b5a8b1c3df /drivers/char/agp | |
| parent | 46fad808b1b73c3f7c0b88016dcc6fb4cd549b27 (diff) | |
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 'drivers/char/agp')
| -rw-r--r-- | drivers/char/agp/intel-gtt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index 0f7d28a98b9a..9702c78f458d 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c | |||
| @@ -1420,8 +1420,10 @@ int intel_gmch_probe(struct pci_dev *bridge_pdev, struct pci_dev *gpu_pdev, | |||
| 1420 | } | 1420 | } |
| 1421 | EXPORT_SYMBOL(intel_gmch_probe); | 1421 | EXPORT_SYMBOL(intel_gmch_probe); |
| 1422 | 1422 | ||
| 1423 | void intel_gtt_get(u64 *gtt_total, size_t *stolen_size, | 1423 | void intel_gtt_get(u64 *gtt_total, |
| 1424 | phys_addr_t *mappable_base, u64 *mappable_end) | 1424 | u32 *stolen_size, |
| 1425 | phys_addr_t *mappable_base, | ||
| 1426 | u64 *mappable_end) | ||
| 1425 | { | 1427 | { |
| 1426 | *gtt_total = intel_private.gtt_total_entries << PAGE_SHIFT; | 1428 | *gtt_total = intel_private.gtt_total_entries << PAGE_SHIFT; |
| 1427 | *stolen_size = intel_private.stolen_size; | 1429 | *stolen_size = intel_private.stolen_size; |
