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

drm/amd/pm/powerplay/hwmgr/hwmgr: Move 'vega20_hwmgr_init()'s prototype to shared header

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

drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_hwmgr.c:4403:5: warning: no previous prototype for ‘vega20_hwmgr_init’ [-Wmissing-prototypes]
4403 | int vega20_hwmgr_init(struct pp_hwmgr *hwmgr)
| ^~~~~~~~~~~~~~~~~

Cc: Evan Quan <evan.quan@amd.com>
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
e0ef04b8 4cbcfd60

+1 -1
+1
drivers/gpu/drm/amd/pm/inc/hwmgr.h
··· 831 831 int smu7_init_function_pointers(struct pp_hwmgr *hwmgr); 832 832 int smu8_init_function_pointers(struct pp_hwmgr *hwmgr); 833 833 int vega12_hwmgr_init(struct pp_hwmgr *hwmgr); 834 + int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); 834 835 835 836 #endif /* _HWMGR_H_ */
-1
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c
··· 47 47 extern const struct pp_smumgr_func vega20_smu_funcs; 48 48 49 49 extern int vega10_hwmgr_init(struct pp_hwmgr *hwmgr); 50 - extern int vega20_hwmgr_init(struct pp_hwmgr *hwmgr); 51 50 extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr); 52 51 53 52 static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr);