linux/drivers/gpu/drm/amd/display/amdgpu_dm
Magali Lemes b3e8239882 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 <harry.wentland@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Magali Lemes <magalilemes00@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-24 17:26:16 -05:00
..
amdgpu_dm_color.c drm/amd: fix improper docstring syntax 2021-12-13 16:32:34 -05:00
amdgpu_dm_crc.c drm/amd/display: add connector type check for CRC source set 2021-12-01 17:08:47 -05:00
amdgpu_dm_crc.h drm/amd/display: Refactor suspend/resume of Secure display 2021-05-19 22:39:16 -04:00
amdgpu_dm_debugfs.c drm/amd/display: Refactor PSR DPCD caps detection 2022-02-23 14:22:03 -05:00
amdgpu_dm_debugfs.h
amdgpu_dm_hdcp.c drm/amd/display: Add DCN315 DM Support 2022-02-18 14:07:01 -05:00
amdgpu_dm_hdcp.h
amdgpu_dm_helpers.c drm/amd/display: Add conditional around function 2022-02-24 17:26:16 -05:00
amdgpu_dm_irq_params.h drm/amd/display: Use vblank control events for PSR enable/disable 2021-08-16 15:35:56 -04:00
amdgpu_dm_irq.c drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work 2021-08-09 15:44:09 -04:00
amdgpu_dm_irq.h
amdgpu_dm_mst_types.c drm/amd/display: Turn global functions into static functions 2022-02-23 14:03:20 -05:00
amdgpu_dm_mst_types.h drm/amd/display: Add dsc pre-validation in atomic check 2022-02-16 17:30:02 -05:00
amdgpu_dm_pp_smu.c drm/amd/pm: create a new holder for those APIs used only by legacy ASICs(si/kv) 2022-01-14 17:51:14 -05:00
amdgpu_dm_psr.c drm/amd/display: Refactor PSR DPCD caps detection 2022-02-23 14:22:03 -05:00
amdgpu_dm_psr.h drm/amd/display: Delay PSR entry 2021-06-21 17:45:14 -04:00
amdgpu_dm_services.c
amdgpu_dm_trace.h drm/amd/display: Add control mechanism for FPU utilization 2021-08-05 21:17:59 -04:00
amdgpu_dm.c drm/amd/display: Turn global functions into static functions 2022-02-23 14:03:20 -05:00
amdgpu_dm.h drm/amd/display: Add dsc pre-validation in atomic check 2022-02-16 17:30:02 -05:00
dc_fpu.c drm/amd/display: Re-arrange FPU code structure for dcn2x 2021-10-06 15:49:24 -04:00
dc_fpu.h drm/amd/display: Add DC_FP helper to check FPU state 2021-08-05 21:17:59 -04:00
Makefile drm/amd/display: Add control mechanism for FPU 2021-08-05 21:17:59 -04:00