summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c
diff options
context:
space:
mode:
authorSachin Nikam <snikam@nvidia.com>2017-05-16 06:36:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-17 05:15:58 -0400
commit2961b67f6295338096f4715b04a0d66a89a77f78 (patch)
tree1883996e15745340dcc941be82622f56ddef5ff2 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c
parent8fe4a38b3beb4ead073a6341132feacadab7a866 (diff)
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 <snikam@nvidia.com> Reviewed-on: http://git-master/r/1482942 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c6
1 files 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)
90 - sizeof(struct gk20a_fecs_trace_record)) / sizeof(u64); 90 - sizeof(struct gk20a_fecs_trace_record)) / sizeof(u64);
91} 91}
92 92
93struct gk20a_fecs_trace_record *gk20a_fecs_trace_get_record( 93static struct gk20a_fecs_trace_record *gk20a_fecs_trace_get_record(
94 struct gk20a_fecs_trace *trace, int idx) 94 struct gk20a_fecs_trace *trace, int idx)
95{ 95{
96 return (struct gk20a_fecs_trace_record *) 96 return (struct gk20a_fecs_trace_record *)
@@ -475,7 +475,7 @@ static int gk20a_fecs_trace_debugfs_ring_seq_show(
475/* 475/*
476 * Tie them all together into a set of seq_operations. 476 * Tie them all together into a set of seq_operations.
477 */ 477 */
478const struct seq_operations gk20a_fecs_trace_debugfs_ring_seq_ops = { 478static const struct seq_operations gk20a_fecs_trace_debugfs_ring_seq_ops = {
479 .start = gk20a_fecs_trace_debugfs_ring_seq_start, 479 .start = gk20a_fecs_trace_debugfs_ring_seq_start,
480 .next = gk20a_fecs_trace_debugfs_ring_seq_next, 480 .next = gk20a_fecs_trace_debugfs_ring_seq_next,
481 .stop = gk20a_fecs_trace_debugfs_ring_seq_stop, 481 .stop = gk20a_fecs_trace_debugfs_ring_seq_stop,
@@ -508,7 +508,7 @@ static int gk20a_ctxsw_debugfs_ring_open(struct inode *inode,
508 * The file operations structure contains our open function along with 508 * The file operations structure contains our open function along with
509 * set of the canned seq_ ops. 509 * set of the canned seq_ ops.
510 */ 510 */
511const struct file_operations gk20a_fecs_trace_debugfs_ring_fops = { 511static const struct file_operations gk20a_fecs_trace_debugfs_ring_fops = {
512 .owner = THIS_MODULE, 512 .owner = THIS_MODULE,
513 .open = gk20a_ctxsw_debugfs_ring_open, 513 .open = gk20a_ctxsw_debugfs_ring_open,
514 .read = seq_read, 514 .read = seq_read,