diff options
author | Ren Zhijie <renzhijie2@huawei.com> | 2022-11-21 13:04:18 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-23 10:31:30 -0500 |
commit | b7a3260c73d274daee652d57cbc934f47d1c0ef0 (patch) | |
tree | 0f76a073c3845c0be3facc64ba42b85868f03516 /tools/perf/scripts/python | |
parent | abd51738fe754a684ec44b7a9eca1981e1704ad9 (diff) |
drm/amdgpu: fix unused-function error
If CONFIG_DRM_AMDGPU=y and CONFIG_DRM_AMD_DC is not set,
gcc complained about unused-function :
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1705:13: error: ‘amdgpu_discovery_set_sriov_display’ defined but not used [-Werror=unused-function]
static void amdgpu_discovery_set_sriov_display(struct amdgpu_device *adev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
To fix this error, use CONFIG_DRM_AMD_DC to wrap
the definition of amdgpu_discovery_set_sriov_display().
Fixes: 25263da37693 ("drm/amdgpu: rework SR-IOV virtual display handling")
Signed-off-by: Ren Zhijie <renzhijie2@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions