From 91241ca8e975dd9352e31e06ca408618477fac91 Mon Sep 17 00:00:00 2001 From: David Pu Date: Tue, 30 Aug 2016 15:49:12 -0700 Subject: 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 Reviewed-on: http://git-master/r/1210393 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 2 ++ 1 file changed, 2 insertions(+) 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: return err; } +#ifdef CONFIG_DEBUG_FS void gk20a_mm_debugfs_init(struct device *dev) { struct gk20a_platform *platform = dev_get_drvdata(dev); @@ -4812,6 +4813,7 @@ void gk20a_mm_debugfs_init(struct device *dev) debugfs_create_bool("force_pramin", 0664, gpu_root, &g->mm.force_pramin); } +#endif void gk20a_init_mm(struct gpu_ops *gops) { -- cgit v1.2.2