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

drm/radeon/ci_dpm: Move 'si_*()'s prototypes to shared header

Fixes the following W=1 kernel build warning(s):

drivers/gpu/drm/radeon/si_dpm.c:3802:4: warning: no previous prototype for ‘si_get_ddr3_mclk_frequency_ratio’ [-Wmissing-prototypes]
3802 | u8 si_get_ddr3_mclk_frequency_ratio(u32 memory_clock)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/radeon/si_dpm.c:3815:4: warning: no previous prototype for ‘si_get_mclk_frequency_ratio’ [-Wmissing-prototypes]
3815 | u8 si_get_mclk_frequency_ratio(u32 memory_clock, bool strobe_mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/radeon/si_dpm.c:3897:6: warning: no previous prototype for ‘si_trim_voltage_table_to_fit_state_table’ [-Wmissing-prototypes]
3897 | void si_trim_voltage_table_to_fit_state_table(struct radeon_device *rdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lee Jones and committed by
Alex Deucher
5e7c91d2 c580cfc9

+6 -5
+1 -5
drivers/gpu/drm/radeon/ci_dpm.c
··· 33 33 #include "radeon.h" 34 34 #include "radeon_asic.h" 35 35 #include "radeon_ucode.h" 36 + #include "si_dpm.h" 36 37 37 38 #define MC_CG_ARB_FREQ_F0 0x0a 38 39 #define MC_CG_ARB_FREQ_F1 0x0b ··· 154 153 extern u8 rv770_get_memory_module_index(struct radeon_device *rdev); 155 154 extern int ni_copy_and_switch_arb_sets(struct radeon_device *rdev, 156 155 u32 arb_freq_src, u32 arb_freq_dest); 157 - extern u8 si_get_ddr3_mclk_frequency_ratio(u32 memory_clock); 158 - extern u8 si_get_mclk_frequency_ratio(u32 memory_clock, bool strobe_mode); 159 - extern void si_trim_voltage_table_to_fit_state_table(struct radeon_device *rdev, 160 - u32 max_voltage_steps, 161 - struct atom_voltage_table *voltage_table); 162 156 static int ci_get_std_voltage_value_sidd(struct radeon_device *rdev, 163 157 struct atom_voltage_table_entry *voltage_table, 164 158 u16 *std_voltage_hi_sidd, u16 *std_voltage_lo_sidd);
+5
drivers/gpu/drm/radeon/si_dpm.h
··· 234 234 #define SISLANDS_CGULVPARAMETER_DFLT 0x00040035 235 235 #define SISLANDS_CGULVCONTROL_DFLT 0x1f007550 236 236 237 + u8 si_get_ddr3_mclk_frequency_ratio(u32 memory_clock); 238 + u8 si_get_mclk_frequency_ratio(u32 memory_clock, bool strobe_mode); 239 + void si_trim_voltage_table_to_fit_state_table(struct radeon_device *rdev, 240 + u32 max_voltage_steps, 241 + struct atom_voltage_table *voltage_table); 237 242 238 243 #endif