[drm-intel:drm-intel-next-queued 3/23] drivers/gpu/drm/i915/i915_gem_gtt.c:964: warning: 'iter.sg' is used uninitialized in this function

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

 



tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   75c7b0b8620ce5a672da02e721a775acb7863c64
commit: 894ccebee2b0e606ba9638d20dd87b33568482d7 [3/23] drm/i915: Micro-optimise gen8_ppgtt_insert_entries()
config: x86_64-randconfig-v0-02151136 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout 894ccebee2b0e606ba9638d20dd87b33568482d7
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_4lvl':
>> drivers/gpu/drm/i915/i915_gem_gtt.c:964: warning: 'iter.sg' is used uninitialized in this function
>> drivers/gpu/drm/i915/i915_gem_gtt.c:965: warning: 'iter.dma' is used uninitialized in this function
   drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ppgtt_insert_3lvl':
   drivers/gpu/drm/i915/i915_gem_gtt.c:947: warning: 'iter.sg' is used uninitialized in this function
   drivers/gpu/drm/i915/i915_gem_gtt.c:948: warning: 'iter.dma' is used uninitialized in this function

vim +964 drivers/gpu/drm/i915/i915_gem_gtt.c

   958					   enum i915_cache_level cache_level,
   959					   u32 unused)
   960	{
   961		struct i915_hw_ppgtt *ppgtt = i915_vm_to_ppgtt(vm);
   962		struct sgt_dma iter = {
   963			.sg = pages->sgl,
 > 964			.dma = sg_dma_address(iter.sg),
 > 965			.max = iter.dma + iter.sg->length,
   966		};
   967		struct i915_page_directory_pointer **pdps = ppgtt->pml4.pdps;
   968		unsigned int pml4e = gen8_pml4e_index(start);

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux