From b3e1ce04b963e91b9b425b3c35cc4eff11db7543 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 21 Apr 2017 12:42:57 -0700 Subject: gpu: nvgpu: Put debugfs dependencies inside #ifdef Put all debugfs dependencies inside #ifdef CONFIG_DEBUG_FS. This includes some functions in allocators that were used only for debugging. Remove include of linux/debugfs.h on files that do not deal with debugfs. linux/debugfs.h implicitly included linux/fs.h, which we relied on. Add explicit include of linux/fs.h for all files where this is the case. Change-Id: I16feffae6b0e3a2edf366075cdc01ade86be06f9 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1467897 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gm206/bios_gm206.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gm206') diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 6db37d72..058df3c4 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c @@ -256,7 +256,9 @@ int gm206_bios_init(struct gk20a *g) { unsigned int i; struct gk20a_platform *platform = dev_get_drvdata(g->dev); +#ifdef CONFIG_DEBUG_FS struct dentry *d; +#endif struct nvgpu_firmware *bios_fw; int err; struct pci_dev *pdev = to_pci_dev(g->dev); @@ -317,6 +319,7 @@ int gm206_bios_init(struct gk20a *g) (g->pci_device_id == 0x1c75) && (g->gpu_characteristics.vbios_version == 0x86065300); +#ifdef CONFIG_DEBUG_FS g->bios_blob.data = g->bios.data; g->bios_blob.size = g->bios.size; @@ -324,6 +327,7 @@ int gm206_bios_init(struct gk20a *g) &g->bios_blob); if (!d) nvgpu_err(g, "No debugfs?"); +#endif gk20a_dbg_fn("done"); -- cgit v1.2.2