[drm-intel:drm-intel-next-queued 70/75] drivers/gpu/drm/i915/i915_irq.c:939:43: sparse: incorrect type in argument 2 (different address spaces)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~danvet/drm-intel.git drm-intel-next-queued
head:   42dcedd4f2e715dc0313e359c8288e6397843fff
commit: 960e3564bfa464f92549383d41659f2aaeee1420 [70/75] drm/i915: Support readback of stolen objects upon error


sparse warnings:

+ drivers/gpu/drm/i915/i915_irq.c:939:43: sparse: incorrect type in argument 2 (different address spaces)
drivers/gpu/drm/i915/i915_irq.c:939:43:    expected void const volatile [noderef] <asn:2>*src
drivers/gpu/drm/i915/i915_irq.c:939:43:    got void *<noident>

vim +939 drivers/gpu/drm/i915/i915_irq.c

172975aa Chris Wilson 2011-12-14  923  			/* Simply ignore tiling or any overlapping fence.
172975aa Chris Wilson 2011-12-14  924  			 * It's part of the error state, and this hopefully
172975aa Chris Wilson 2011-12-14  925  			 * captures what the GPU read.
172975aa Chris Wilson 2011-12-14  926  			 */
172975aa Chris Wilson 2011-12-14  927  
172975aa Chris Wilson 2011-12-14  928  			s = io_mapping_map_atomic_wc(dev_priv->mm.gtt_mapping,
172975aa Chris Wilson 2011-12-14  929  						     reloc_offset);
172975aa Chris Wilson 2011-12-14  930  			memcpy_fromio(d, s, PAGE_SIZE);
172975aa Chris Wilson 2011-12-14  931  			io_mapping_unmap_atomic(s);
960e3564 Chris Wilson 2012-11-15  932  		} else if (src->stolen) {
960e3564 Chris Wilson 2012-11-15  933  			unsigned long offset;
960e3564 Chris Wilson 2012-11-15  934  
960e3564 Chris Wilson 2012-11-15  935  			offset = dev_priv->mm.stolen_base;
960e3564 Chris Wilson 2012-11-15  936  			offset += src->stolen->start;
960e3564 Chris Wilson 2012-11-15  937  			offset += i << PAGE_SHIFT;
960e3564 Chris Wilson 2012-11-15  938  
960e3564 Chris Wilson 2012-11-15 @939  			memcpy_fromio(d, (void *)offset, PAGE_SIZE);
172975aa Chris Wilson 2011-12-14  940  		} else {
9da3da66 Chris Wilson 2012-06-01  941  			struct page *page;
172975aa Chris Wilson 2011-12-14  942  			void *s;
172975aa Chris Wilson 2011-12-14  943  
9da3da66 Chris Wilson 2012-06-01  944  			page = i915_gem_object_get_page(src, i);
172975aa Chris Wilson 2011-12-14  945  
9da3da66 Chris Wilson 2012-06-01  946  			drm_clflush_pages(&page, 1);
9da3da66 Chris Wilson 2012-06-01  947  

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux