<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">Am 22.07.2020 18:04 schrieb Wei Yongjun <weiyongjun1@huawei.com>:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div>The sparse tool complains as follows:<br>
<br>
drivers/dma-buf/dma-fence.c:249:25: warning:<br>
 symbol 'dma_fence_lockdep_map' was not declared. Should it be static?<br>
<br>
This variable is not used outside of dma-fence.c, so this commit<br>
marks it static.<br>
<br>
Fixes: 5fbff813a4a3 ("dma-fence: basic lockdep annotations")<br>
Reported-by: Hulk Robot <hulkci@huawei.com><br>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com><br>
</div>
</span></font></div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Reviewed-by: Christian König <christian.koenig@amd.com></div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div>---<br>
 drivers/dma-buf/dma-fence.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c<br>
index af1d8ea926b3..43624b4ee13d 100644<br>
--- a/drivers/dma-buf/dma-fence.c<br>
+++ b/drivers/dma-buf/dma-fence.c<br>
@@ -246,7 +246,7 @@ EXPORT_SYMBOL(dma_fence_context_alloc);<br>
  *   concerned.<br>
  */<br>
 #ifdef CONFIG_LOCKDEP<br>
-struct lockdep_map     dma_fence_lockdep_map = {<!-- --><br>
+static struct lockdep_map dma_fence_lockdep_map = {<!-- --><br>
         .name = "dma_fence_map"<br>
 };<br>
 <br>
<br>
</div>
</span></font></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>