[radeon-alex:drm-next-4.10-wip 33/38] drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c:363:8: error: too few arguments to function 'dma_fence_wait_any_timeout'

kbuild test robot fengguang.wu at intel.com
Tue Nov 8 00:28:57 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.10-wip
head:   14f8d51910e9d2f2f41164a55fe770cedb4a5585
commit: 45838b82feab1951b6940013d629bcc8a8808e83 [33/38] dma-buf: return index of the first signaled fence (v2)
config: i386-randconfig-s0-11071731 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 45838b82feab1951b6940013d629bcc8a8808e83
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the radeon-alex/drm-next-4.10-wip HEAD 14f8d51910e9d2f2f41164a55fe770cedb4a5585 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c: In function 'amdgpu_sa_bo_new':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c:363:8: error: too few arguments to function 'dma_fence_wait_any_timeout'
       t = dma_fence_wait_any_timeout(fences, count, false,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drmP.h:60:0,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c:44:
   include/linux/dma-fence.h:383:13: note: declared here
    signed long dma_fence_wait_any_timeout(struct dma_fence **fences,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/dma_fence_wait_any_timeout +363 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c

6ba60b89 Christian König 2016-03-11  357  		for (i = 0, count = 0; i < AMDGPU_SA_NUM_FENCE_LISTS; ++i)
ee327caf Christian König 2015-10-20  358  			if (fences[i])
f54d1867 Chris Wilson    2016-10-25  359  				fences[count++] = dma_fence_get(fences[i]);
ee327caf Christian König 2015-10-20  360  
ee327caf Christian König 2015-10-20  361  		if (count) {
d38ceaf9 Alex Deucher    2015-04-20  362  			spin_unlock(&sa_manager->wq.lock);
f54d1867 Chris Wilson    2016-10-25 @363  			t = dma_fence_wait_any_timeout(fences, count, false,
ee327caf Christian König 2015-10-20  364  						       MAX_SCHEDULE_TIMEOUT);
a8d81b36 Nicolai Hähnle  2016-02-05  365  			for (i = 0; i < count; ++i)
f54d1867 Chris Wilson    2016-10-25  366  				dma_fence_put(fences[i]);

:::::: The code at line 363 was first introduced by commit
:::::: f54d1867005c3323f5d8ad83eed823e84226c429 dma-buf: Rename struct fence to dma_fence

:::::: TO: Chris Wilson <chris at chris-wilson.co.uk>
:::::: CC: Daniel Vetter <daniel.vetter at ffwll.ch>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27103 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161108/ef204d48/attachment-0001.gz>


More information about the dri-devel mailing list