tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.0
head: a51a5ad4b8daf0dd0a437d51a19c2baa98953675
commit: a5784d79d1577c00e6e81f892cde52593546a5f4 [3698/3724] drm/amdkcl: drop
kcl_dma_fence_set_error
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
git checkout a5784d79d1577c00e6e81f892cde52593546a5f4
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email protected]>
sparse warnings: (new ones prefixed by >>)
include/kcl/kcl_fence.h:142:20: sparse: sparse: multiple definitions for
function 'dma_fence_set_error'
>> include/linux/dma-fence.h:508:20: sparse: the previous one is here
include/kcl/kcl_drm.h:167:1: sparse: sparse: multiple definitions for
function 'drm_fb_helper_remove_conflicting_pci_framebuffers'
include/drm/drm_fb_helper.h:641:1: sparse: the previous one is here
include/kcl/kcl_drm.h:390:28: sparse: sparse: redefinition of struct
drm_format_name_buf
vim +508 include/linux/dma-fence.h
d6c99f4bf093a5 Chris Wilson 2017-01-04 496
a009e975da5c7d Chris Wilson 2017-01-04 497 /**
a009e975da5c7d Chris Wilson 2017-01-04 498 * dma_fence_set_error - flag an
error condition on the fence
2c269b09065123 Daniel Vetter 2018-04-27 499 * @fence: the dma_fence
2c269b09065123 Daniel Vetter 2018-04-27 500 * @error: the error to store
a009e975da5c7d Chris Wilson 2017-01-04 501 *
a009e975da5c7d Chris Wilson 2017-01-04 502 * Drivers can supply an optional
error status condition before they signal
a009e975da5c7d Chris Wilson 2017-01-04 503 * the fence, to indicate that
the fence was completed due to an error
a009e975da5c7d Chris Wilson 2017-01-04 504 * rather than success. This must
be set before signaling (so that the value
a009e975da5c7d Chris Wilson 2017-01-04 505 * is visible before any waiters
on the signal callback are woken). This
a009e975da5c7d Chris Wilson 2017-01-04 506 * helper exists to help catching
erroneous setting of #dma_fence.error.
a009e975da5c7d Chris Wilson 2017-01-04 507 */
a009e975da5c7d Chris Wilson 2017-01-04 @508 static inline void
dma_fence_set_error(struct dma_fence *fence,
a009e975da5c7d Chris Wilson 2017-01-04 509
int error)
a009e975da5c7d Chris Wilson 2017-01-04 510 {
6ce31263c9758c Daniel Vetter 2017-07-20 511
WARN_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags));
6ce31263c9758c Daniel Vetter 2017-07-20 512 WARN_ON(error >= 0 || error <
-MAX_ERRNO);
a009e975da5c7d Chris Wilson 2017-01-04 513
a009e975da5c7d Chris Wilson 2017-01-04 514 fence->error = error;
a009e975da5c7d Chris Wilson 2017-01-04 515 }
a009e975da5c7d Chris Wilson 2017-01-04 516
:::::: The code at line 508 was first introduced by commit
:::::: a009e975da5c7d42a7f5eaadc54946eb5f76c9af dma-fence: Introduce
drm_fence_set_error() helper
:::::: TO: Chris Wilson <[email protected]>
:::::: CC: Sumit Semwal <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel