linux-stable/drivers/gpu/drm/amd/display/dc
Arnd Bergmann c40845e319 kbuild: make -Woverride-init warnings more consistent
The -Woverride-init warn about code that may be intentional or not,
but the inintentional ones tend to be real bugs, so there is a bit of
disagreement on whether this warning option should be enabled by default
and we have multiple settings in scripts/Makefile.extrawarn as well as
individual subsystems.

Older versions of clang only supported -Wno-initializer-overrides with
the same meaning as gcc's -Woverride-init, though all supported versions
now work with both. Because of this difference, an earlier cleanup of
mine accidentally turned the clang warning off for W=1 builds and only
left it on for W=2, while it's still enabled for gcc with W=1.

There is also one driver that only turns the warning off for newer
versions of gcc but not other compilers, and some but not all the
Makefiles still use a cc-disable-warning conditional that is no
longer needed with supported compilers here.

Address all of the above by removing the special cases for clang
and always turning the warning off unconditionally where it got
in the way, using the syntax that is supported by both compilers.

Fixes: 2cd3271b7a ("kbuild: avoid duplicate warning options")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2024-03-31 11:32:26 +09:00
..
basics drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
bios drm/amd/display: add DC changes for DCN351 2024-03-04 15:59:08 -05:00
clk_mgr drm/amd/display: Init DPPCLK from SMU on dcn32 2024-03-20 13:12:58 -04:00
core drm/amd/display: Add a dc_state NULL check in dc_state_release 2024-03-20 13:12:59 -04:00
dce drm/amd/display: Only allow dig mapping to pwrseq in new asic 2024-02-22 10:17:52 -05:00
dce60 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce80 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce110 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce112 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce120 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dcn10 drm/amd/display: Implement wait_for_odm_update_pending_complete 2024-03-20 13:12:58 -04:00
dcn20 drm/amd/display: Implement wait_for_odm_update_pending_complete 2024-03-20 13:12:58 -04:00
dcn21 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn30 drm/amdgpu/display: Initialize gamma correction mode variable in dcn30_get_gamcor_current() 2024-02-14 17:14:19 -05:00
dcn31 drm/amd/display: Only allow dig mapping to pwrseq in new asic 2024-02-22 10:17:52 -05:00
dcn32 drm/amd/display: Override min required DCFCLK in dml1_validate 2024-03-20 13:12:58 -04:00
dcn35 drm/amd/display: add DC changes for DCN351 2024-03-04 15:59:08 -05:00
dcn201 drm/amd/display: Implement wait_for_odm_update_pending_complete 2024-03-20 13:12:58 -04:00
dcn301 drm/amd/display: Only allow dig mapping to pwrseq in new asic 2024-02-22 10:17:52 -05:00
dcn302 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn303 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn314 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn321 drm/amd/display: Refactor resource into component directory 2023-11-17 09:30:50 -05:00
dml drm/amd/display: Revert Remove pixle rate limit for subvp 2024-03-20 13:12:59 -04:00
dml2 drm/amd/display: Init DPPCLK from SMU on dcn32 2024-03-20 13:12:58 -04:00
dsc drm/amd/display: Fix timing bandwidth calculation for HDMI 2024-01-22 17:13:26 -05:00
gpio drm/amd/display: add DC changes for DCN351 2024-03-04 15:59:08 -05:00
hdcp drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
hwss drm/amd/display: Fix noise issue on HDMI AV mute 2024-03-20 13:36:29 -04:00
inc drm/amd/display: Implement wait_for_odm_update_pending_complete 2024-03-20 13:12:58 -04:00
irq drm/amd/display: add DCN351 IRQ changes 2024-03-04 15:59:08 -05:00
link drm/amd/display: Amend coasting vtotal for replay low hz 2024-03-20 13:12:58 -04:00
optc drm/amd/display: Implement wait_for_odm_update_pending_complete 2024-03-20 13:12:58 -04:00
resource drm/amd/display: Init DPPCLK from SMU on dcn32 2024-03-20 13:12:58 -04:00
virtual
Makefile drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dc.h drm/amd/display: 3.2.273 2024-02-22 10:26:25 -05:00
dc_bios_types.h drm/amd/display: Pass pwrseq inst for backlight and ABM 2023-12-06 15:22:33 -05:00
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv 2024-02-22 10:18:15 -05:00
dc_dmub_srv.h drm/amd/display: Wake DMCUB before executing GPINT commands 2023-12-19 14:59:02 -05:00
dc_dp_types.h drm/amd/display: Add dpia display mode validation logic 2024-01-03 10:47:12 -05:00
dc_dsc.h drm/amd/display: Add link encoding to timing BW calculation parameters 2023-07-18 11:15:51 -04:00
dc_edid_parser.c
dc_edid_parser.h
dc_hdmi_types.h
dc_helper.c drm/amd/display: Wake DMCUB before sending a command 2023-12-19 14:59:02 -05:00
dc_hw_types.h drm/amd/display: Drop some unnecessary guards 2024-02-07 12:26:23 -05:00
dc_plane.h drm/amd/display: Refactor dc_state interface 2023-12-19 14:59:02 -05:00
dc_plane_priv.h drm/amd/display: Refactor dc_state interface 2023-12-19 14:59:02 -05:00
dc_stat.h
dc_state.h drm/amd/display: Refactor phantom resource allocation 2023-12-19 14:59:02 -05:00
dc_state_priv.h drm/amd/display: Refactor phantom resource allocation 2023-12-19 14:59:02 -05:00
dc_stream.h Revert "drm/amd/display: For FPO and SubVP/DRR configs program vmin/max sel" 2024-02-07 12:26:23 -05:00
dc_stream_priv.h drm/amd/display: Refactor phantom resource allocation 2023-12-19 14:59:02 -05:00
dc_trace.h
dc_types.h drm/amd/display: Amend coasting vtotal for replay low hz 2024-03-20 13:12:58 -04:00
dm_cp_psp.h drm/amd/display: Trivial code style adjustment 2024-02-07 12:26:23 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: adjust flow for deallocation mst payload 2023-11-29 16:49:00 -05:00
dm_pp_smu.h drm/amd/pm: support return vpe clock table 2023-12-14 15:25:59 -05:00
dm_services.h drm/amd/display: Show the DCN/DCE version in the log 2023-06-09 09:34:09 -04:00
dm_services_types.h drm/amd/display: refactor dmub commands into single function 2023-04-18 16:28:52 -04:00
irq_types.h drm/amd/display: Correct enum typo 2023-10-26 18:59:56 -04:00
os_types.h drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00