diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-12-04 17:51:20 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-08 23:02:28 -0500 |
commit | c699b05c408656e7a714ede1f73a1996bef95c4b (patch) | |
tree | 4926fdde689192679d10fa3115fbdc7a7f3478b3 /drivers/gpu/drm/drm_simple_kms_helper.c | |
parent | 048faf2783a273e162fad5d09089a75c6e2cc10e (diff) |
drm/amdgpu: fw_attestation: fix unused function warning
Without debugfs, the compiler notices one function that is not used at
all:
drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:123:12: error: unused function 'amdgpu_is_fw_attestation_supported' [-Werror,-Wunused-function]
In fact the static const amdgpu_fw_attestation_debugfs_ops structure is
also unused here, but that warning is currently disabled.
Removing the #ifdef check does the right thing and leads to all of this
code to be dropped without warning.
Fixes: 19ae333001b3 ("drm/amdgpu: added support for psp fw attestation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_simple_kms_helper.c')
0 files changed, 0 insertions, 0 deletions