diff options
| author | Arnd Bergmann <[email protected]> | 2019-04-26 14:56:03 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2019-05-08 12:40:39 +0000 |
| commit | 6d6165603e162e3d391f35853a4ab232ab0db064 (patch) | |
| tree | a51f1087ffdc0f6a22a68078a3fd42d4cdb57508 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | bus: tegra-aconnect: add system sleep callbacks (diff) | |
| download | kernel-6d6165603e162e3d391f35853a4ab232ab0db064.tar.gz kernel-6d6165603e162e3d391f35853a4ab232ab0db064.zip | |
amba: tegra-ahb: Mark PM functions as __maybe_unused
clang warns about an unused variable when CONFIG_PM is disabled, since
it is only referenced from an #ifdef:
drivers/amba/tegra-ahb.c:97:18: error: variable 'tegra_ahb_gizmo' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
Rather than trying to get the #ifdef right, remove it and use
__maybe_unused here, which is less error prone.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
