mirror-linux/drivers/dma-buf
Tvrtko Ursulin 62918542b7 dma-fence: Fix sparse warnings due __rcu annotations
__rcu annotations on the return types from dma_fence_driver_name() and
dma_fence_timeline_name() cause sparse to complain because both the
constant signaled strings, and the strings return by the dma_fence_ops are
not __rcu annotated.

For a simple fix it is easiest to cast them with __rcu added and undo the
smarts from the tracpoints side of things. There is no functional change
since the rest is left in place. Later we can consider changing the
dma_fence_ops return types too, and handle all the individual drivers
which define them.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: 506aa8b02a ("dma-fence: Add safe access helpers and document the rules")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506162214.1eA69hLe-lkp@intel.com/
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250616155952.24259-1-tvrtko.ursulin@igalia.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2026-02-09 14:05:20 +01:00
..
heaps dma-buf: system_heap: account for system heap allocation in memcg 2026-01-19 19:09:52 +05:30
Kconfig dma-buf: Always build with DMABUF_MOVE_NOTIFY 2026-01-27 10:45:11 +01:00
Makefile dma-buf: Remove DMA-BUF sysfs stats 2026-01-19 19:10:01 +05:30
dma-buf-mapping.c dma-buf: fix integer overflow in fill_sg_entry() for buffers >= 8GiB 2025-11-28 10:06:25 -07:00
dma-buf.c dma-buf: Always build with DMABUF_MOVE_NOTIFY 2026-01-27 10:45:11 +01:00
dma-fence-array.c dma-buf: fix dma_fence_array_signaled v4 2024-11-25 20:08:27 +01:00
dma-fence-chain.c dma-fence: Use a flag for 64-bit seqnos 2025-06-03 17:38:04 +01:00
dma-fence-unwrap.c dma-fence: Add helper to sort and deduplicate dma_fence arrays 2025-05-05 13:29:44 -04:00
dma-fence.c dma-fence: Fix sparse warnings due __rcu annotations 2026-02-09 14:05:20 +01:00
dma-heap.c dma-buf: heaps: add parameter to account allocations using cgroup 2026-01-19 19:08:47 +05:30
dma-resv.c dma-buf: fix timeout handling in dma_resv_wait_timeout v2 2025-06-30 13:15:44 +02:00
selftest.c
selftest.h
selftests.h
st-dma-fence-chain.c dma-buf: Fix NULL pointer dereference in sanitycheck() 2024-03-20 10:15:45 +01:00
st-dma-fence-unwrap.c dma-fence: Add some more fence-merge-unwrap tests 2025-01-09 16:40:02 +01:00
st-dma-fence.c dma-buf/selftests: drop the mock_wait implementation 2025-12-17 15:00:57 +01:00
st-dma-resv.c
sw_sync.c dma-buf/sw-sync: always taint the kernel when sw-sync is used 2025-11-25 10:07:08 +01:00
sync_debug.c dma-buf: Switch to use %ptSp 2025-11-19 10:24:13 +01:00
sync_debug.h dma-buf/sw-sync: Remove unused debug code 2025-05-08 12:51:59 +02:00
sync_file.c sync_file: Protect access to driver and timeline name 2025-06-13 08:24:12 +01:00
sync_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
udmabuf.c drm-misc-next for 6.17: 2025-06-18 08:09:35 +10:00