Skip to contentSkip to conversation

dma-buf: heaps: Make sys_heap static

PATCH New Zou Wei 1 participant 1 message Oct 29, 2020

Subsystems (3)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 dma-buf: heaps: Make sys_heap static

Fix the following sparse warning:

drivers/dma-buf/heaps/system_heap.c:23:17: warning: symbol 'sys_heap' was not declared. Should it be static?

sys_heap has only call within system_heap.c
It should be static

---
 drivers/dma-buf/heaps/system_heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma-buf/heaps/system_heap.c +1 -1
index 0bf688e..41502bf 100644
@@ -20,7 +20,7 @@
 
 #include "heap-helpers.h"
 
-struct dma_heap *sys_heap;
+static struct dma_heap *sys_heap;
 
 static void system_heap_free(struct heap_helper_buffer *buffer)
 {
Signature · 1 line
2.6.2