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

drm/radeon/ni_dpm: Move 'ni_get_{pi, ps}()'s into shared header

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

drivers/gpu/drm/radeon/ni_dpm.c:727:23: warning: no previous prototype for ‘ni_get_pi’ [-Wmissing-prototypes]
727 | struct ni_power_info *ni_get_pi(struct radeon_device *rdev)
| ^~~~~~~~~
drivers/gpu/drm/radeon/ni_dpm.c:734:15: warning: no previous prototype for ‘ni_get_ps’ [-Wmissing-prototypes]
734 | struct ni_ps *ni_get_ps(struct radeon_ps *rps)
| ^~~~~~~~~

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
8595a0bf 586831d6

+4 -2
+3
drivers/gpu/drm/radeon/ni_dpm.h
··· 247 247 248 248 bool ni_dpm_vblank_too_short(struct radeon_device *rdev); 249 249 250 + struct ni_power_info *ni_get_pi(struct radeon_device *rdev); 251 + struct ni_ps *ni_get_ps(struct radeon_ps *rps); 252 + 250 253 #endif
+1 -2
drivers/gpu/drm/radeon/si_dpm.c
··· 30 30 #include "rv770.h" 31 31 #include "radeon.h" 32 32 #include "radeon_asic.h" 33 + #include "ni_dpm.h" 33 34 #include "si_dpm.h" 34 35 #include "sid.h" 35 36 ··· 1720 1719 }; 1721 1720 1722 1721 struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); 1723 - struct ni_power_info *ni_get_pi(struct radeon_device *rdev); 1724 - struct ni_ps *ni_get_ps(struct radeon_ps *rps); 1725 1722 1726 1723 extern int si_mc_load_microcode(struct radeon_device *rdev); 1727 1724 extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable);