diff options
author | Thierry Reding <treding@nvidia.com> | 2015-08-14 12:35:23 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-08-26 10:15:36 +0300 |
commit | 8e9d597a37e407476b4de725bef4cb1ad1f5c22c (patch) | |
tree | 684d95c160a24b86f89896d1c9ac5386b4a14154 /drivers/gpu/drm/i915/i915_gem_stolen.c | |
parent | 5f8b253147c27b8244451ee28aeb3429c5aa2e52 (diff) | |
download | op-kernel-dev-8e9d597a37e407476b4de725bef4cb1ad1f5c22c.zip op-kernel-dev-8e9d597a37e407476b4de725bef4cb1ad1f5c22c.tar.gz |
drm/i915: Fix build warning on 32-bit
The gtt.stolen_size field is of type size_t, and so should be printed
using %zu to avoid build warnings on either 32-bit and 64-bit builds.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_stolen.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_stolen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index a36cb95..f361c4a 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c @@ -348,7 +348,7 @@ int i915_gem_init_stolen(struct drm_device *dev) * memory, so just consider the start. */ reserved_total = stolen_top - reserved_base; - DRM_DEBUG_KMS("Memory reserved for graphics device: %luK, usable: %luK\n", + DRM_DEBUG_KMS("Memory reserved for graphics device: %zuK, usable: %luK\n", dev_priv->gtt.stolen_size >> 10, (dev_priv->gtt.stolen_size - reserved_total) >> 10); |