gpu: nvgpu: debug: remove unused dentry pointers

Starting with kernel 5.7-rc3, the debugfs_create_u32 function returns
void instead of (struct dentry *). The rationale was that the
returned value was never used, and indeed it was not used within
NVGPU.

JIRA HK123-39

Change-Id: Ic8c2aaf9c84bcf016ed7a0183d84da311e4027d0
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2337859
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2020-04-29 11:52:56 -04:00
committed by Alex Waterman
parent cd7194cbc0
commit 4267008096
3 changed files with 15 additions and 29 deletions

View File

@@ -376,10 +376,9 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
l->debugfs,
&g->mm.ltc_enabled_target);
l->debugfs_poll_timeout_default =
debugfs_create_u32("poll_timeout_default_ms",
S_IRUGO|S_IWUSR, l->debugfs,
&g->poll_timeout_default);
debugfs_create_u32("poll_timeout_default_ms", S_IRUGO|S_IWUSR,
l->debugfs, &g->poll_timeout_default);
l->debugfs_timeouts_enabled =
debugfs_create_file("timeouts_enabled",
S_IRUGO|S_IWUSR,
@@ -394,21 +393,16 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
g,
&disable_bigpage_fops);
l->debugfs_tsg_timeslice_low_priority_us =
debugfs_create_u32("tsg_timeslice_low_priority_us",
S_IRUGO|S_IWUSR,
l->debugfs,
&g->tsg_timeslice_low_priority_us);
l->debugfs_tsg_timeslice_medium_priority_us =
debugfs_create_u32("tsg_timeslice_medium_priority_us",
S_IRUGO|S_IWUSR,
l->debugfs,
&g->tsg_timeslice_medium_priority_us);
l->debugfs_tsg_timeslice_high_priority_us =
debugfs_create_u32("tsg_timeslice_high_priority_us",
S_IRUGO|S_IWUSR,
l->debugfs,
&g->tsg_timeslice_high_priority_us);
debugfs_create_u32("tsg_timeslice_low_priority_us", S_IRUGO|S_IWUSR,
l->debugfs, &g->tsg_timeslice_low_priority_us);
debugfs_create_u32("tsg_timeslice_medium_priority_us", S_IRUGO|S_IWUSR,
l->debugfs,
&g->tsg_timeslice_medium_priority_us);
debugfs_create_u32("tsg_timeslice_high_priority_us", S_IRUGO|S_IWUSR,
l->debugfs, &g->tsg_timeslice_high_priority_us);
l->debugfs_runlist_interleave =
debugfs_create_bool("runlist_interleave",
S_IRUGO|S_IWUSR,