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

drm/radeon/dpm: make some functions static for TN

Noticed by Rashika Kheria and cherry-picked from
her larger patch set.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Rashika Kheria <rashika.kheria@gmail.com>

+2 -5
+2 -2
drivers/gpu/drm/radeon/trinity_dpm.c
··· 342 342 struct radeon_ps *new_rps, 343 343 struct radeon_ps *old_rps); 344 344 345 - struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) 345 + static struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) 346 346 { 347 347 struct trinity_ps *ps = rps->ps_priv; 348 348 349 349 return ps; 350 350 } 351 351 352 - struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) 352 + static struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) 353 353 { 354 354 struct trinity_power_info *pi = rdev->pm.dpm.priv; 355 355
-3
drivers/gpu/drm/radeon/trinity_smc.c
··· 27 27 #include "trinity_dpm.h" 28 28 #include "ppsmc.h" 29 29 30 - struct trinity_ps *trinity_get_ps(struct radeon_ps *rps); 31 - struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev); 32 - 33 30 static int trinity_notify_message_to_smu(struct radeon_device *rdev, u32 id) 34 31 { 35 32 int i;