mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
Alex Waterman
parent
cd7194cbc0
commit
4267008096
@@ -376,10 +376,9 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
|||||||
l->debugfs,
|
l->debugfs,
|
||||||
&g->mm.ltc_enabled_target);
|
&g->mm.ltc_enabled_target);
|
||||||
|
|
||||||
l->debugfs_poll_timeout_default =
|
debugfs_create_u32("poll_timeout_default_ms", S_IRUGO|S_IWUSR,
|
||||||
debugfs_create_u32("poll_timeout_default_ms",
|
l->debugfs, &g->poll_timeout_default);
|
||||||
S_IRUGO|S_IWUSR, l->debugfs,
|
|
||||||
&g->poll_timeout_default);
|
|
||||||
l->debugfs_timeouts_enabled =
|
l->debugfs_timeouts_enabled =
|
||||||
debugfs_create_file("timeouts_enabled",
|
debugfs_create_file("timeouts_enabled",
|
||||||
S_IRUGO|S_IWUSR,
|
S_IRUGO|S_IWUSR,
|
||||||
@@ -394,21 +393,16 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
|||||||
g,
|
g,
|
||||||
&disable_bigpage_fops);
|
&disable_bigpage_fops);
|
||||||
|
|
||||||
l->debugfs_tsg_timeslice_low_priority_us =
|
debugfs_create_u32("tsg_timeslice_low_priority_us", S_IRUGO|S_IWUSR,
|
||||||
debugfs_create_u32("tsg_timeslice_low_priority_us",
|
l->debugfs, &g->tsg_timeslice_low_priority_us);
|
||||||
S_IRUGO|S_IWUSR,
|
|
||||||
l->debugfs,
|
debugfs_create_u32("tsg_timeslice_medium_priority_us", S_IRUGO|S_IWUSR,
|
||||||
&g->tsg_timeslice_low_priority_us);
|
l->debugfs,
|
||||||
l->debugfs_tsg_timeslice_medium_priority_us =
|
&g->tsg_timeslice_medium_priority_us);
|
||||||
debugfs_create_u32("tsg_timeslice_medium_priority_us",
|
|
||||||
S_IRUGO|S_IWUSR,
|
debugfs_create_u32("tsg_timeslice_high_priority_us", S_IRUGO|S_IWUSR,
|
||||||
l->debugfs,
|
l->debugfs, &g->tsg_timeslice_high_priority_us);
|
||||||
&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);
|
|
||||||
l->debugfs_runlist_interleave =
|
l->debugfs_runlist_interleave =
|
||||||
debugfs_create_bool("runlist_interleave",
|
debugfs_create_bool("runlist_interleave",
|
||||||
S_IRUGO|S_IWUSR,
|
S_IRUGO|S_IWUSR,
|
||||||
|
|||||||
@@ -263,15 +263,11 @@ int gm20b_clk_init_debugfs(struct gk20a *g)
|
|||||||
if (!d)
|
if (!d)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
|
|
||||||
d = debugfs_create_u32("pll_na_mode", S_IRUGO, l->debugfs,
|
debugfs_create_u32("pll_na_mode", S_IRUGO, l->debugfs,
|
||||||
(u32 *)&g->clk.gpc_pll.mode);
|
(u32 *)&g->clk.gpc_pll.mode);
|
||||||
if (!d)
|
|
||||||
goto err_out;
|
|
||||||
|
|
||||||
d = debugfs_create_u32("fmax2x_at_vmin_safe_t", S_IRUGO,
|
debugfs_create_u32("fmax2x_at_vmin_safe_t", S_IRUGO,
|
||||||
l->debugfs, (u32 *)&g->clk.dvfs_safe_max_freq);
|
l->debugfs, (u32 *)&g->clk.dvfs_safe_max_freq);
|
||||||
if (!d)
|
|
||||||
goto err_out;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
@@ -152,12 +152,8 @@ struct nvgpu_os_linux {
|
|||||||
|
|
||||||
struct dentry *debugfs_ltc_enabled;
|
struct dentry *debugfs_ltc_enabled;
|
||||||
struct dentry *debugfs_timeouts_enabled;
|
struct dentry *debugfs_timeouts_enabled;
|
||||||
struct dentry *debugfs_poll_timeout_default;
|
|
||||||
struct dentry *debugfs_disable_bigpage;
|
struct dentry *debugfs_disable_bigpage;
|
||||||
|
|
||||||
struct dentry *debugfs_tsg_timeslice_low_priority_us;
|
|
||||||
struct dentry *debugfs_tsg_timeslice_medium_priority_us;
|
|
||||||
struct dentry *debugfs_tsg_timeslice_high_priority_us;
|
|
||||||
struct dentry *debugfs_runlist_interleave;
|
struct dentry *debugfs_runlist_interleave;
|
||||||
struct dentry *debugfs_allocators;
|
struct dentry *debugfs_allocators;
|
||||||
struct dentry *debugfs_xve;
|
struct dentry *debugfs_xve;
|
||||||
|
|||||||
Reference in New Issue
Block a user