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:
Vishal Annapurve
2016-03-04 21:31:01 +05:30
committed by Sandeep Trasi
parent fbc21ed2ee
commit cd29c45e67
3 changed files with 4 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -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;