summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorDavid Pu <dpu@nvidia.com>2016-08-30 18:49:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-08-31 15:03:54 -0400
commit91241ca8e975dd9352e31e06ca408618477fac91 (patch)
tree31af7119146b75e1791123e228b3f925fe8139b0 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parentcfa0f2a6ea9e6c99cd02fffa8dfa323744a4965f (diff)
gpu: nvgpu: fix build error when CONFIG_DEBUG_FS=n
adding 'ifdef CONFIG_DEBUG_FS' check to fix following compilation error when CONFIG_DEBUG_FS=n(which is used for Android 'production' build): mm_gk20a.c: In function 'gk20a_mm_debugfs_init': mm_gk20a.c:4824:2: error: implicit declaration of function 'debugfs_create_x64' [-Werror=implicit-function-declaration] Bug 1778001 Change-Id: I785288a37b96c391b84925d5971d2691cf80206e Signed-off-by: David Pu <dpu@nvidia.com> Reviewed-on: http://git-master/r/1210393 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 7ace85d7..7c731890 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -4800,6 +4800,7 @@ clean_up:
4800 return err; 4800 return err;
4801} 4801}
4802 4802
4803#ifdef CONFIG_DEBUG_FS
4803void gk20a_mm_debugfs_init(struct device *dev) 4804void gk20a_mm_debugfs_init(struct device *dev)
4804{ 4805{
4805 struct gk20a_platform *platform = dev_get_drvdata(dev); 4806 struct gk20a_platform *platform = dev_get_drvdata(dev);
@@ -4812,6 +4813,7 @@ void gk20a_mm_debugfs_init(struct device *dev)
4812 debugfs_create_bool("force_pramin", 0664, gpu_root, 4813 debugfs_create_bool("force_pramin", 0664, gpu_root,
4813 &g->mm.force_pramin); 4814 &g->mm.force_pramin);
4814} 4815}
4816#endif
4815 4817
4816void gk20a_init_mm(struct gpu_ops *gops) 4818void gk20a_init_mm(struct gpu_ops *gops)
4817{ 4819{