<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Mhm, guys any idea why the build bot is
spamming us with that warning?<br>
<br>
The type is 64bit and the shift is 63, so that should work fine.<br>
<br>
Regards,<br>
Christian.<br>
<br>
Am 10.02.2017 um 20:48 schrieb kbuild test robot:<br>
</div>
<blockquote
cite="mid:201702110342.VxXxgZZq%25fengguang.wu@intel.com"
type="cite">
<pre wrap="">tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.12-wip
head: d32ff0ea8e22964abcc6406e00a0646f2bfb94c7
commit: 382a21d981661dbc8198c37dc95707e1e381ce76 [34/40] drm/amdgpu: IOCTL interface for PRT support v4
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget <a class="moz-txt-link-freetext" href="https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross">https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross</a> -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 382a21d981661dbc8198c37dc95707e1e381ce76
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c: In function 'amdgpu_gem_va_ioctl':
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:620:4: warning: left shift count >= width of type
</pre>
</blockquote>
</blockquote>
<pre wrap=""> va_flags |= AMDGPU_PTE_PRT;
^
vim +620 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
604 r = -ENOENT;
605 goto error_backoff;
606 }
607 } else {
608 bo_va = fpriv->prt_va;
609 }
610
611 switch (args->operation) {
612 case AMDGPU_VA_OP_MAP:
613 if (args->flags & AMDGPU_VM_PAGE_READABLE)
614 va_flags |= AMDGPU_PTE_READABLE;
615 if (args->flags & AMDGPU_VM_PAGE_WRITEABLE)
616 va_flags |= AMDGPU_PTE_WRITEABLE;
617 if (args->flags & AMDGPU_VM_PAGE_EXECUTABLE)
618 va_flags |= AMDGPU_PTE_EXECUTABLE;
619 if (args->flags & AMDGPU_VM_PAGE_PRT)
> 620 va_flags |= AMDGPU_PTE_PRT;
621 r = amdgpu_vm_bo_map(adev, bo_va, args->va_address,
622 args->offset_in_bo, args->map_size,
623 va_flags);
624 break;
625 case AMDGPU_VA_OP_UNMAP:
626 r = amdgpu_vm_bo_unmap(adev, bo_va, args->va_address);
627 break;
628 default:
---
0-DAY kernel test infrastructure Open Source Technology Center
<a class="moz-txt-link-freetext" href="https://lists.01.org/pipermail/kbuild-all">https://lists.01.org/pipermail/kbuild-all</a> Intel Corporation
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dri-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/dri-devel">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>