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/gk20a/debug_gk20a.c | |
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/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 1a9ffe77..d577c625 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |||
@@ -12,9 +12,12 @@ | |||
12 | * | 12 | * |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #ifdef CONFIG_DEBUG_FS | ||
15 | #include <linux/debugfs.h> | 16 | #include <linux/debugfs.h> |
17 | #endif | ||
16 | #include <linux/seq_file.h> | 18 | #include <linux/seq_file.h> |
17 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/fs.h> | ||
18 | 21 | ||
19 | #include <nvgpu/log.h> | 22 | #include <nvgpu/log.h> |
20 | #include <nvgpu/kmem.h> | 23 | #include <nvgpu/kmem.h> |
@@ -298,8 +301,8 @@ int gk20a_railgating_debugfs_init(struct device *dev) | |||
298 | 301 | ||
299 | void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) | 302 | void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) |
300 | { | 303 | { |
301 | struct gk20a_platform *platform = dev_get_drvdata(dev); | ||
302 | #ifdef CONFIG_DEBUG_FS | 304 | #ifdef CONFIG_DEBUG_FS |
305 | struct gk20a_platform *platform = dev_get_drvdata(dev); | ||
303 | struct gk20a *g = platform->g; | 306 | struct gk20a *g = platform->g; |
304 | 307 | ||
305 | platform->debugfs = debugfs_create_dir(dev_name(dev), NULL); | 308 | platform->debugfs = debugfs_create_dir(dev_name(dev), NULL); |