From 116a28ac1f0802dc306392746c3dde272ee55c47 Mon Sep 17 00:00:00 2001 From: kernel test robot Date: Fri, 25 Mar 2022 05:23:11 +0800 Subject: [PATCH] habanalabs: hl_ts_behavior can be static drivers/misc/habanalabs/common/memory.c:2137:28: warning: symbol 'hl_ts_behavior' was not declared. Should it be static? Fixes: 4d530e7d121a ("habanalabs: convert ts to use unified memory manager") Reported-by: kernel test robot Signed-off-by: kernel test robot Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Greg Kroah-Hartman --- drivers/misc/habanalabs/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/habanalabs/common/memory.c b/drivers/misc/habanalabs/common/memory.c index 900f2f02c9a4..57d42e30818a 100644 --- a/drivers/misc/habanalabs/common/memory.c +++ b/drivers/misc/habanalabs/common/memory.c @@ -2140,7 +2140,7 @@ free_mem: return -ENOMEM; } -struct hl_mmap_mem_buf_ops hl_ts_behavior = { +static struct hl_mmap_mem_buf_ops hl_ts_behavior = { .mmap = hl_ts_mmap, .alloc = hl_ts_alloc_buf, .release = ts_buff_release,