]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: Prettify typecasts for dma-fence-chain
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Apr 2020 11:00:59 +0000 (12:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Apr 2020 18:52:03 +0000 (19:52 +0100)
commit597720bbc7165bcbfcf9e4ae37b2c0e7ee3a962e
treee526c631e69fb7d34443b1aa24661412c8952337
parentf0a5b46175e169b9cd12bb4907f75116b42474e9
dma-buf: Prettify typecasts for dma-fence-chain

Inside dma-fence-chain, we use a cmpxchg on an RCU-protected pointer. To
avoid the sparse warning for using the RCU pointer directly, we have to
cast away the __rcu annotation. However, we don't need to use void*
everywhere and can stick to the dma_fence*.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200409110101.18400-1-chris@chris-wilson.co.uk
drivers/dma-buf/dma-fence-chain.c