diff options
| author | Isabella Basso <[email protected]> | 2021-12-08 17:46:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-12-13 21:34:26 +0000 |
| commit | 240e6d25a0a8ab98c042e37b2fd3c1f2cbf3e561 (patch) | |
| tree | 85fc7e685e179e8225fa045a49885b2b6d65a9f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amd/display: Reduce stack size for dml31 UseMinimumDCFCLK (diff) | |
| download | kernel-240e6d25a0a8ab98c042e37b2fd3c1f2cbf3e561.tar.gz kernel-240e6d25a0a8ab98c042e37b2fd3c1f2cbf3e561.zip | |
drm/amd/display: fix function scopes
This turns previously global functions into static, thus removing
compile-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 <[email protected]>
Signed-off-by: Isabella Basso <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
