[Intel-gfx] [drm-intel:drm-intel-next-queued 543/545] drivers/gpu/drm/i915/i915_debugfs.c:2449:57: sparse: Using plain integer as NULL pointer

kbuild test robot fengguang.wu at intel.com
Fri Aug 14 05:37:26 PDT 2015


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   41615b7ab6113248748c5734981009f1a0ee499b
commit: 9a9cb6512e140a84b589a6e99f4e71b0397b6685 [543/545] drm/i915: Debugfs interface for GuC submission statistics
reproduce:
  # apt-get install sparse
  git checkout 9a9cb6512e140a84b589a6e99f4e71b0397b6685
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/i915/i915_debugfs.c:2449:57: sparse: Using plain integer as NULL pointer
   drivers/gpu/drm/i915/i915_debugfs.c:4953:18: sparse: Variable length array is used.
   drivers/gpu/drm/i915/i915_debugfs.c:4953:32: sparse: Variable length array is used.

vim +2449 drivers/gpu/drm/i915/i915_debugfs.c

  2433	
  2434		for_each_ring(ring, dev_priv, i) {
  2435			seq_printf(m, "\tSubmissions: %llu %s\n",
  2436					client->submissions[i],
  2437					ring->name);
  2438			tot += client->submissions[i];
  2439		}
  2440		seq_printf(m, "\tTotal: %llu\n", tot);
  2441	}
  2442	
  2443	static int i915_guc_info(struct seq_file *m, void *data)
  2444	{
  2445		struct drm_info_node *node = m->private;
  2446		struct drm_device *dev = node->minor->dev;
  2447		struct drm_i915_private *dev_priv = dev->dev_private;
  2448		struct intel_guc guc;
> 2449		struct i915_guc_client client = { .client_obj = 0 };
  2450		struct intel_engine_cs *ring;
  2451		enum intel_ring_id i;
  2452		u64 total = 0;
  2453	
  2454		if (!HAS_GUC_SCHED(dev_priv->dev))
  2455			return 0;
  2456	
  2457		/* Take a local copy of the GuC data, so we can dump it at leisure */

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Intel-gfx mailing list