mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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 <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1142909 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
This commit is contained in:
committed by
Sachin Nikam
parent
70d5313882
commit
f138e7f69d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user