drm/amd/display: Turn global functions into staticTurn global functions that are only used locally into static ones. Thisreduces the number of -Wmissing-prototypes warnings.Signed-off-by: Arthur
drm/amd/display: Turn global functions into staticTurn global functions that are only used locally into static ones. Thisreduces the number of -Wmissing-prototypes warnings.Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
drm/amd/display: Remove the unused function dmub_outbox_irq_info_funcsThe function dmub_outbox_irq_info_funcs is defined in theirq_service_dcn201.c file, but not called elsewhere, so remove thisu
drm/amd/display: Remove the unused function dmub_outbox_irq_info_funcsThe function dmub_outbox_irq_info_funcs is defined in theirq_service_dcn201.c file, but not called elsewhere, so remove thisunused function.drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn201/irq_service_dcn201.c:139:43: warning: unused variable 'dmub_outbox_irq_info_funcs'.Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3520Reported-by: Abaci Robot <abaci@linux.alibaba.com>Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: clean up some irq service code for dcn201[Why and how]Clean up some irq service code for dcn201.Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>Acked-by: Tom Chung <chiahsuan.
drm/amd/display: clean up some irq service code for dcn201[Why and how]Clean up some irq service code for dcn201.Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>Acked-by: Tom Chung <chiahsuan.chung@amd.com>Signed-off-by: Liu Xi <xi.liu@amd.com>Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: Remove unused dmub_outbox_irq_info_funcs variableRemove the unused struct irq_source_info_funcsdmub_outbox_irq_info_funcs from the file, which was declared but neverhooked up.T
drm/amd/display: Remove unused dmub_outbox_irq_info_funcs variableRemove the unused struct irq_source_info_funcsdmub_outbox_irq_info_funcs from the file, which was declared but neverhooked up.This was pointed by clang with the following warning:drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn201/irq_service_dcn201.c:141:43:warning: unused variable 'dmub_outbox_irq_info_funcs'[-Wunused-const-variable]static const struct irq_source_info_funcs dmub_outbox_irq_info_funcs = { ^Signed-off-by: Maíra Canal <maira.canal@usp.br>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: fix function scopesThis turns previously global functions into static, thus removingcompile-time warnings such as: warning: no previous prototype for 'get_highest_allowed_voltag
drm/amd/display: fix function scopesThis turns previously global functions into static, thus removingcompile-time warnings such as: warning: no previous prototype for 'get_highest_allowed_voltage_level' [-Wmissing-prototypes] 742 | unsigned int get_highest_allowed_voltage_level(uint32_t chip_family, uint32_t hw_internal_rev, uint32_t pci_revision_id) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: no previous prototype for 'rv1_vbios_smu_send_msg_with_param' [-Wmissing-prototypes] 102 | int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Changes since v1:- As suggested by Rodrigo Siqueira: 1. Rewrite function signatures to make them more readable. 2. Get rid of unused functions in order to remove 'defined but not used' warnings.Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>Signed-off-by: Isabella Basso <isabbasso@riseup.net>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drm/amd/display: add cyan_skillfish display support[Why]add display related cyan_skillfish files in.makefile controlled by CONFIG_DRM_AMD_DC_DCN201 flag.v2: squash in clang fixes from Harry, N
drm/amd/display: add cyan_skillfish display support[Why]add display related cyan_skillfish files in.makefile controlled by CONFIG_DRM_AMD_DC_DCN201 flag.v2: squash in clang fixes from Harry, Nathanv3: squash in missing CONFIG_DRM_AMD_DC check (Alex)Signed-off-by: Charlene Liu <charlene.liu@amd.com>Signed-off-by: Zhan Liu <zhan.liu@amd.com>Reviewed-by: Charlene Liu <charlene.liu@amd.com>Acked-by: Jun Lei <jun.lei@amd.com>Acked-by: Harry Wentland <harry.wentland@amd.com>Acked-by: Alex Deucher <alexander.deucher@amd.com>Signed-off-by: Alex Deucher <alexander.deucher@amd.com>