Skip to content

Commit fa07634

Browse files
Wei Yongjunairlied
authored andcommitted
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: 5fbff81 ("dma-fence: basic lockdep annotations") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4145cb5 commit fa07634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma-buf/dma-fence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ EXPORT_SYMBOL(dma_fence_context_alloc);
246246
* concerned.
247247
*/
248248
#ifdef CONFIG_LOCKDEP
249-
struct lockdep_map dma_fence_lockdep_map = {
249+
static struct lockdep_map dma_fence_lockdep_map = {
250250
.name = "dma_fence_map"
251251
};
252252

0 commit comments

Comments
 (0)