drm/amdgpu: fw_attestation: fix unused function warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 4 Dec 2020 16:51:20 +0000 (17:51 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Dec 2020 04:02:28 +0000 (23:02 -0500)
commitc699b05c408656e7a714ede1f73a1996bef95c4b
tree4926fdde689192679d10fa3115fbdc7a7f3478b3
parent048faf2783a273e162fad5d09089a75c6e2cc10e
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c