diff options
| author | Magali Lemes <[email protected]> | 2022-02-24 19:15:49 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-24 22:26:16 +0000 |
| commit | b3e8239882d9f5870bcd78baa342b0cc42c1fbb3 (patch) | |
| tree | d70750f44dd893a26984566e2d71746568f97078 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amd/display: Adjust functions documentation (diff) | |
| download | kernel-b3e8239882d9f5870bcd78baa342b0cc42c1fbb3.tar.gz kernel-b3e8239882d9f5870bcd78baa342b0cc42c1fbb3.zip | |
drm/amd/display: Add conditional around function
When CONFIG_DRM_AMD_DC_DCN is not set, the function
'dm_helpers_enable_periodic_detection' doesn't have its prototype defined,
causing the following warning:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:805:6:
warning: no previous prototype for function 'dm_helpers_enable_periodic_detection' [-Wmissing-prototypes]
void dm_helpers_enable_periodic_detection(struct dc_context *ctx, bool enable)
^
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_helpers.c:805:1:
note: declare 'static' if the function is not intended to be used outside
of this translation unit
void dm_helpers_enable_periodic_detection(struct dc_context *ctx, bool enable)
^
static
1 warning generated.
This commit silences this warning by adding a conditional directive
around the mentioned function, and also corrects a small spelling error.
Reviewed-by: Harry Wentland <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Magali Lemes <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
