diff options
author | 2013-12-03 11:44:48 +0100 | |
---|---|---|
committer | 2013-12-19 09:29:52 +0100 | |
commit | 8e0d788c6feeb13cbf312acaefa0e91cece0677b (patch) | |
tree | 17c37ad169f936c77e797d88d80bc0fc4c406211 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpu: host1x: Increase compile test coverage (diff) | |
download | linux-dev-8e0d788c6feeb13cbf312acaefa0e91cece0677b.tar.xz linux-dev-8e0d788c6feeb13cbf312acaefa0e91cece0677b.zip |
gpu: host1x: Fix build warnings
When debugfs support isn't enabled, gcc complains about some variables
being unused. To avoid further #ifdefery, move debugfs specific setup
code into static functions and use IS_ENABLED(CONFIG_DEBUG_FS) to have
the compiler, rather than the preprocessor, discard them when unused.
The advantage of doing it this way is that all the code will be
compile-tested whether or not debugfs support is enabled.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions