From 2961b67f6295338096f4715b04a0d66a89a77f78 Mon Sep 17 00:00:00 2001 From: Sachin Nikam Date: Tue, 16 May 2017 16:06:25 +0530 Subject: gpu: nvgpu: gk20a: fix sparse warnings Make functions as static to fix sparse warnings: - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c:93:32: warning: symbol 'gk20a_fecs_trace_get_record' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c:478:29: warning: symbol 'gk20a_fecs_trace_debugfs_ring_seq_ops' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c:511:30: warning: symbol 'gk20a_fecs_trace_debugfs_ring_fops' was not declared. Should it be static? Bug 200299572 Change-Id: I62695f9711bcee1bf7d5831e42989ea4da169e42 Signed-off-by: Sachin Nikam Reviewed-on: http://git-master/r/1482942 Reviewed-by: Terje Bergstrom Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 9e78c843..c292540f 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c @@ -90,7 +90,7 @@ static inline int gk20a_fecs_trace_num_ts(void) - sizeof(struct gk20a_fecs_trace_record)) / sizeof(u64); } -struct gk20a_fecs_trace_record *gk20a_fecs_trace_get_record( +static struct gk20a_fecs_trace_record *gk20a_fecs_trace_get_record( struct gk20a_fecs_trace *trace, int idx) { return (struct gk20a_fecs_trace_record *) @@ -475,7 +475,7 @@ static int gk20a_fecs_trace_debugfs_ring_seq_show( /* * Tie them all together into a set of seq_operations. */ -const struct seq_operations gk20a_fecs_trace_debugfs_ring_seq_ops = { +static const struct seq_operations gk20a_fecs_trace_debugfs_ring_seq_ops = { .start = gk20a_fecs_trace_debugfs_ring_seq_start, .next = gk20a_fecs_trace_debugfs_ring_seq_next, .stop = gk20a_fecs_trace_debugfs_ring_seq_stop, @@ -508,7 +508,7 @@ static int gk20a_ctxsw_debugfs_ring_open(struct inode *inode, * The file operations structure contains our open function along with * set of the canned seq_ ops. */ -const struct file_operations gk20a_fecs_trace_debugfs_ring_fops = { +static const struct file_operations gk20a_fecs_trace_debugfs_ring_fops = { .owner = THIS_MODULE, .open = gk20a_ctxsw_debugfs_ring_open, .read = seq_read, -- cgit v1.2.2