From f138e7f69d7918d597d2df34af1e1d0353ea2888 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Fri, 6 May 2016 09:14:46 -0700 Subject: gpu: nvgpu: fix sparse warning Fix below sparse warnings: drivers/gpu/nvgpu/gk20a/fifo_gk20a.c:2628:29: warning: symbol 'gk20a_fifo_sched_debugfs_seq_ ops' was not declared. Should it be static? drivers/gpu/nvgpu/gk20a/fifo_gk20a.c:2657:30: warning: symbol 'gk20a_fifo_sched_debugfs_fops' was not declared. Should it be static? Bug 200088648 Change-Id: I4e12ca0988b2d9dd7962d026a3a0f9f674e89ada Signed-off-by: Thomas Fleury Reviewed-on: http://git-master/r/1142909 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Amit Sharma (SW-TEGRA) Reviewed-by: Sachin Nikam --- drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index fa8ab5b1..aa8e0c40 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c @@ -2625,7 +2625,7 @@ static int gk20a_fifo_sched_debugfs_seq_show( return 0; } -const struct seq_operations gk20a_fifo_sched_debugfs_seq_ops = { +static const struct seq_operations gk20a_fifo_sched_debugfs_seq_ops = { .start = gk20a_fifo_sched_debugfs_seq_start, .next = gk20a_fifo_sched_debugfs_seq_next, .stop = gk20a_fifo_sched_debugfs_seq_stop, @@ -2654,7 +2654,7 @@ static int gk20a_fifo_sched_debugfs_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_fifo_sched_debugfs_fops = { +static const struct file_operations gk20a_fifo_sched_debugfs_fops = { .owner = THIS_MODULE, .open = gk20a_fifo_sched_debugfs_open, .read = seq_read, -- cgit v1.2.2