dma-buf: fix unintended pin/unpin warnings
authorChristian König <christian.koenig@amd.com>
Mon, 17 May 2021 11:20:17 +0000 (13:20 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 20 May 2021 12:02:27 +0000 (14:02 +0200)
commit7e008b02557ccece4d2c31fb0eaf6243cbc87121
tree3d3e8cb512e10ba0a300a6acebd2e81e3b382fce
parentc55b44c9386f3ee1b08752638559f19deaf6040d
dma-buf: fix unintended pin/unpin warnings

DMA-buf internal users call the pin/unpin functions without having a
dynamic attachment. Avoid the warning and backtrace in the logs.

Signed-off-by: Christian König <christian.koenig@amd.com>
Bugs: https://gitlab.freedesktop.org/drm/intel/-/issues/3481
Fixes: c545781e1c55 ("dma-buf: doc polish for pin/unpin")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
CC: stable@kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210517115705.2141-1-christian.koenig@amd.com
drivers/dma-buf/dma-buf.c