Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alex Hung and committed by
Alex Deucher
1a63bda8 63de35a8

-2
-1
drivers/gpu/drm/amd/display/dc/dc_plane.h
··· 26 26 #ifndef _DC_PLANE_H_ 27 27 #define _DC_PLANE_H_ 28 28 29 - #include "dc.h" 30 29 #include "dc_hw_types.h" 31 30 32 31 struct dc_plane_state *dc_create_plane_state(const struct dc *dc);
-1
drivers/gpu/drm/amd/display/dc/dc_state.h
··· 26 26 #ifndef _DC_STATE_H_ 27 27 #define _DC_STATE_H_ 28 28 29 - #include "dc.h" 30 29 #include "inc/core_status.h" 31 30 32 31 struct dc_state *dc_state_create(struct dc *dc, struct dc_state_create_params *params);