diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-21 15:42:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-24 14:05:17 -0400 |
commit | b3e1ce04b963e91b9b425b3c35cc4eff11db7543 (patch) | |
tree | 73c45d0acfe3ce25298ba1dc8dfa4777e02c861a /drivers/gpu/nvgpu/gm206 | |
parent | b88c9ad793cb9822f359b8c498afe872c412959c (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1467897
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) | |||
256 | { | 256 | { |
257 | unsigned int i; | 257 | unsigned int i; |
258 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | 258 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); |
259 | #ifdef CONFIG_DEBUG_FS | ||
259 | struct dentry *d; | 260 | struct dentry *d; |
261 | #endif | ||
260 | struct nvgpu_firmware *bios_fw; | 262 | struct nvgpu_firmware *bios_fw; |
261 | int err; | 263 | int err; |
262 | struct pci_dev *pdev = to_pci_dev(g->dev); | 264 | struct pci_dev *pdev = to_pci_dev(g->dev); |
@@ -317,6 +319,7 @@ int gm206_bios_init(struct gk20a *g) | |||
317 | (g->pci_device_id == 0x1c75) && | 319 | (g->pci_device_id == 0x1c75) && |
318 | (g->gpu_characteristics.vbios_version == 0x86065300); | 320 | (g->gpu_characteristics.vbios_version == 0x86065300); |
319 | 321 | ||
322 | #ifdef CONFIG_DEBUG_FS | ||
320 | g->bios_blob.data = g->bios.data; | 323 | g->bios_blob.data = g->bios.data; |
321 | g->bios_blob.size = g->bios.size; | 324 | g->bios_blob.size = g->bios.size; |
322 | 325 | ||
@@ -324,6 +327,7 @@ int gm206_bios_init(struct gk20a *g) | |||
324 | &g->bios_blob); | 327 | &g->bios_blob); |
325 | if (!d) | 328 | if (!d) |
326 | nvgpu_err(g, "No debugfs?"); | 329 | nvgpu_err(g, "No debugfs?"); |
330 | #endif | ||
327 | 331 | ||
328 | gk20a_dbg_fn("done"); | 332 | gk20a_dbg_fn("done"); |
329 | 333 | ||