tree: git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-next-queued head: 30335dc87a460e36a3b630e329bdcf8537f67eff commit: 00fc2c3c53d7bfc9a29e5f4bdf2677f0c399f3bc [17/20] drm/i915: Remove gtt_mappable_total config: i386-randconfig-b063 (attached as .config)
All warnings:
drivers/gpu/drm/i915/i915_debugfs.c: In function 'i915_gem_object_info':
drivers/gpu/drm/i915/i915_debugfs.c:263:6: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat]
vim +263 drivers/gpu/drm/i915/i915_debugfs.c
247 ++mappable_count; 248 } 249 if (obj->madv == I915_MADV_DONTNEED) { 250 purgeable_size += obj->base.size; 251 ++purgeable_count; 252 } 253 } 254 seq_printf(m, "%u purgeable objects, %zu bytes\n", 255 purgeable_count, purgeable_size); 256 seq_printf(m, "%u pinned mappable objects, %zu bytes\n", 257 mappable_count, mappable_size); 258 seq_printf(m, "%u fault mappable objects, %zu bytes\n", 259 count, size); 260 261 seq_printf(m, "%zu [%zu] gtt total\n", 262 dev_priv->mm.gtt_total,
263 dev_priv->mm.gtt_mappable_end - dev_priv->mm.gtt_start);
264 265 mutex_unlock(&dev->struct_mutex); 266 267 return 0; 268 } 269 270 static int i915_gem_gtt_info(struct seq_file *m, void* data) 271 {
--- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
Hmm, for whatever reason, my gcc doesn't complain about this, so I am not really sure what's going on.
Fix for [drm-intel:drm-intel-next-queued 17/20] drivers/gpu/drm/i915/i915_debugfs.c:263:6: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int'
Found by Fenguang's 0-DAY kernel build testing
Recommend to squash this in to, since it is not on an upstream branch yet.
commit 00fc2c3c53d7bfc9a29e5f4bdf2677f0c399f3bc Author: Ben Widawsky ben@bwidawsk.net Date: Thu Jan 17 12:45:14 2013 -0800
drm/i915: Remove gtt_mappable_total
Cc: dri-devel@lists.freedesktop.org Cc: Fenguang Wu fengguang.wu@intel.com Cc: Daniel Vetter daniel.vetter@ffwll.ch Signed-off-by: Ben Widawsky ben@bwidawsk.net --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 773b23e..90a6fc5 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -258,7 +258,7 @@ static int i915_gem_object_info(struct seq_file *m, void* data) seq_printf(m, "%u fault mappable objects, %zu bytes\n", count, size);
- seq_printf(m, "%zu [%zu] gtt total\n", + seq_printf(m, "%zu [%lu] gtt total\n", dev_priv->gtt.total, dev_priv->gtt.mappable_end - dev_priv->gtt.start);
dri-devel@lists.freedesktop.org