linux/drivers/gpu/drm/amd/display/dc/dce
Arnd Bergmann c48977f020 drm/amd/display: fix empty debug macros
Using an empty macro expansion as a conditional expression
produces a W=1 warning:

drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c: In function 'dce_aux_transfer_with_retries':
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:775:156: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  775 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_DEFER");
      |                                                                                                                                                            ^
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:783:155: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  783 |                                                                 "dce_aux_transfer_with_retries: AUX_RET_SUCCESS: AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK");
      |                                                                                                                                                           ^

Expand it to "do { } while (0)" instead to make the expression
more robust and avoid the warning.

Fixes: 56aca23093 ("drm/amd/display: Add AUX I2C tracing.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-09-23 15:58:21 -04:00
..
dce_abm.c drm/amd/display: use GFP_ATOMIC in dcn20_resource_construct 2021-04-09 16:38:22 -04:00
dce_abm.h drm/amdgpu: fold CONFIG_DRM_AMD_DC_DCN3* into CONFIG_DRM_AMD_DC_DCN (v3) 2020-11-04 17:11:37 -05:00
dce_audio.c drm/amd/display/dc/dce/dce_audio: Make function invoked by reference static 2021-01-11 16:09:13 -05:00
dce_audio.h drm/amd/display: dce_audio: add DCE6 specific macros,functions 2020-07-27 16:46:12 -04:00
dce_aux.c drm/amd/display: fix empty debug macros 2021-09-23 15:58:21 -04:00
dce_aux.h drm/amd/display: Support for DMUB AUX 2021-05-10 18:06:44 -04:00
dce_clk_mgr.c drm/amd/display: correct asic type check V2 2020-10-27 12:01:16 -04:00
dce_clock_source.c drm/amd/display: Fix 64 bit divisions on 32 bit platforms by using div64 API 2021-03-02 14:07:59 -05:00
dce_clock_source.h drm/amd/display: Initial DC support for Beige Goby 2021-05-19 22:42:00 -04:00
dce_dmcu.c drm/amd/display: use GFP_ATOMIC in dcn20_resource_construct 2021-04-09 16:38:22 -04:00
dce_dmcu.h drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dce_hwseq.c drm/amd/display: dce_hwseq: add DCE6 specific macros,functions 2020-07-27 16:46:17 -04:00
dce_hwseq.h drm/amd/display: implement workaround for riommu related hang 2021-07-21 13:39:25 -04:00
dce_i2c_hw.c drm/amd/display: get refclk from MICROSECOND_TIME_BASE_DIV HW register 2021-06-21 17:45:14 -04:00
dce_i2c_hw.h drm/amd/display: get refclk from MICROSECOND_TIME_BASE_DIV HW register 2021-06-21 17:45:14 -04:00
dce_i2c_sw.c drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static 2021-01-11 16:09:14 -05:00
dce_i2c_sw.h drm/amd/display: add oem i2c implemenation in dc 2019-11-13 15:29:43 -05:00
dce_i2c.c drm/amd/display: add oem i2c implemenation in dc 2019-11-13 15:29:43 -05:00
dce_i2c.h
dce_ipp.c drm/amd/display: dce_ipp: add DCE6 specific macros,functions 2020-07-27 16:46:20 -04:00
dce_ipp.h drm/amd/display: dce_ipp: add DCE6 specific macros,functions 2020-07-27 16:46:20 -04:00
dce_link_encoder.c drm/amd/display/dc/dce/dce_link_encoder: Remove unused variable 'value0' 2021-01-13 23:53:25 -05:00
dce_link_encoder.h drm/amd/display: Add get_dig_frontend implementation for DCEx 2020-12-16 13:27:08 -05:00
dce_mem_input.c drm/amd/display: Add support for SURFACE_PIXEL_FORMAT_GRPH_ABGR16161616. 2021-05-27 15:00:47 -04:00
dce_mem_input.h drm/amd/display: Fix uninitialized field when expanding macro MI_DCE12_MASK_SH_LIST 2021-06-04 12:40:00 -04:00
dce_opp.c drm/amd/display: Allow spatial dither to 10 bpc on all DCE 2021-02-24 09:28:54 -05:00
dce_opp.h drm/amd/display/dc/dce/dce_opp: Remove duplicate entries causing 'field overwritten' issues 2021-01-13 23:53:26 -05:00
dce_panel_cntl.c drm/amd/display: Get backlight from PWM if DMCU is not initialized 2021-09-16 09:56:23 -04:00
dce_panel_cntl.h drm/amd/display: Bug in dce_is_panel_backlight_on() 2020-09-22 12:27:35 -04:00
dce_scl_filters_old.c drm/amd/display: update scaling filters 2020-02-25 11:02:33 -05:00
dce_scl_filters.c drm/amd/display: update scaling filters 2020-02-25 11:02:33 -05:00
dce_stream_encoder.c drm/amd/display: Fix HDMI deep color output for DCE 6-11. 2021-01-25 17:49:47 -05:00
dce_stream_encoder.h
dce_transform.c drm/amd/display: Make assert in DCE's program_bit_depth_reduction more lenient. 2021-05-27 15:00:47 -04:00
dce_transform.h drm/amd/display: dce_transform: DCE6 Scaling Horizontal Filter Init (v2) 2020-07-27 16:46:34 -04:00
dmub_abm.c drm/amd/display: Added support for individual control for multiple back-light instances. 2021-05-27 12:24:03 -04:00
dmub_abm.h drm/amd/display: Add ABM driver implementation 2020-04-01 14:44:44 -04:00
dmub_hw_lock_mgr.c drm/amd/display: Implement INBOX0 usage in driver 2021-05-27 12:25:35 -04:00
dmub_hw_lock_mgr.h drm/amd/display: Implement INBOX0 usage in driver 2021-05-27 12:25:35 -04:00
dmub_outbox.c drm/amd/display/dc/dce/dmub_outbox: Convert over to kernel-doc 2021-05-27 12:33:51 -04:00
dmub_outbox.h drm/amd/display: Support for DMUB AUX 2021-03-02 14:05:41 -05:00
dmub_psr.c drm/amd/display: use do-while-0 for DC_TRACE_LEVEL_MESSAGE() 2021-08-09 15:44:40 -04:00
dmub_psr.h drm/amd/display: Enable PSR Residency for multiple panels 2021-06-08 12:20:20 -04:00
Makefile drm/amd/display: Support for DMUB AUX 2021-03-02 14:05:41 -05:00