diff options
| author | 2024-09-18 20:45:51 -0600 | |
|---|---|---|
| committer | 2024-10-01 17:37:50 -0400 | |
| commit | 1a63bda8c9f5e17cd9eddcb981b0d8be554a82cb (patch) | |
| tree | 0436e352a33c1b67784d9a075a53cbcfc0c3e2cb | |
| parent | drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create' (diff) | |
| download | wireguard-linux-1a63bda8c9f5e17cd9eddcb981b0d8be554a82cb.tar.xz wireguard-linux-1a63bda8c9f5e17cd9eddcb981b0d8be554a82cb.zip | |
drm/amd/display: Eliminate recursive header inclusion
[WHAT & HOW]
This removes recursive inclusion like dc.h -> dc_state.h -> dc.h and
dc.h -> dc_plane.h -> dc.h
This fixes 4 PW.INCLUDE_RECURSION issues reported by Coverity.
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_plane.h | 1 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_state.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_plane.h b/drivers/gpu/drm/amd/display/dc/dc_plane.h index 44afcd989224..bd37ec82b42d 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_plane.h +++ b/drivers/gpu/drm/amd/display/dc/dc_plane.h @@ -26,7 +26,6 @@ #ifndef _DC_PLANE_H_ #define _DC_PLANE_H_ -#include "dc.h" #include "dc_hw_types.h" struct dc_plane_state *dc_create_plane_state(const struct dc *dc); diff --git a/drivers/gpu/drm/amd/display/dc/dc_state.h b/drivers/gpu/drm/amd/display/dc/dc_state.h index caa45db50232..db1e63a7d460 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_state.h +++ b/drivers/gpu/drm/amd/display/dc/dc_state.h @@ -26,7 +26,6 @@ #ifndef _DC_STATE_H_ #define _DC_STATE_H_ -#include "dc.h" #include "inc/core_status.h" struct dc_state *dc_state_create(struct dc *dc, struct dc_state_create_params *params); |
