mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Fix compilation with CONFIG_DEBUG_FS disabled
This change fixes issues with kernel compilation when CONFIG_DEBUG_FS is disabled. Bug 1737085 Change-Id: I74719674d07ae071e3df99b0dda249b54173f40b Signed-off-by: Vishal Annapurve <vannapurve@nvidia.com> Reviewed-on: http://git-master/r/1024167 GVS: Gerrit_Virtual_Submit Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
This commit is contained in:
committed by
Sandeep Trasi
parent
fbc21ed2ee
commit
cd29c45e67
@@ -7485,6 +7485,7 @@ static int gr_gk20a_dump_gr_status_regs(struct gk20a *g,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
int gr_gk20a_debugfs_init(struct gk20a *g)
|
||||
{
|
||||
struct gk20a_platform *platform = platform_get_drvdata(g->dev);
|
||||
@@ -7496,6 +7497,7 @@ int gr_gk20a_debugfs_init(struct gk20a *g)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void gr_gk20a_init_cyclestats(struct gk20a *g)
|
||||
{
|
||||
|
||||
@@ -337,9 +337,9 @@ struct mm_gk20a {
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
u32 ltc_enabled;
|
||||
u32 ltc_enabled_debug;
|
||||
#endif
|
||||
u32 bypass_smmu;
|
||||
u32 disable_bigpage;
|
||||
#endif
|
||||
};
|
||||
|
||||
int gk20a_mm_init(struct mm_gk20a *mm);
|
||||
|
||||
@@ -4426,7 +4426,7 @@ int gk20a_aelpg_init_and_enable(struct gk20a *g, u8 ctrl_id)
|
||||
return status;
|
||||
}
|
||||
|
||||
#if CONFIG_DEBUG_FS
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static int elpg_residency_show(struct seq_file *s, void *data)
|
||||
{
|
||||
struct gk20a *g = s->private;
|
||||
|
||||
Reference in New Issue
Block a user