]> git.baikalelectronics.ru Git - kernel.git/commit
dma-fence: Make symbol 'dma_fence_lockdep_map' static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 22 Jul 2020 16:17:19 +0000 (16:17 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Jul 2020 04:33:12 +0000 (14:33 +1000)
commitcc254928fb49e04ebb3dc218dc47740458d34486
treefc7c1fd11da0a3133ef55fc1ad3cd2b782500b2e
parente4df10e862d8ce761e5750aeb991f27c577e8135
dma-fence: Make symbol 'dma_fence_lockdep_map' static

The sparse tool complains as follows:

drivers/dma-buf/dma-fence.c:249:25: warning:
symbol 'dma_fence_lockdep_map' was not declared. Should it be static?

This variable is not used outside of dma-fence.c, so this commit
marks it static.

Fixes: c3c9fc9aa749 ("dma-fence: basic lockdep annotations")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/dc5e3b19-2087-44ab-a28c-ddb38ff8861a@email.android.com
drivers/dma-buf/dma-fence.c