OpenCloudOS-Kernel/drivers/gpu/drm/amd/powerplay
Baoyou Xie 5cd92f86f0 drm/amd/powerplay/polaris10: mark symbols static where possible
We get a few warnings when building kernel with W=1:
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_clockpowergating.c:34:5: warning: no previous prototype
for 'polaris10_phm_powerup_uvd' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_thermal.c:428:5: warning: no previous prototype
for 'tf_polaris10_thermal_setup_fan_table' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/polaris10_hwmgr.c:125:31: warning: no previous prototype
for 'cast_phw_polaris10_power_state' [-Wmissing-prototypes]
....

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
So this patch marks these functions with 'static'.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-09-14 15:10:39 -04:00
..
eventmgr drm/amd/powerplay: original power state table should not be changed. 2016-09-02 11:32:09 -04:00
hwmgr drm/amd/powerplay/polaris10: mark symbols static where possible 2016-09-14 15:10:39 -04:00
inc drm/amd/powerplay: delete duplicated function and definition. 2016-09-14 15:10:36 -04:00
smumgr drm/amd/powerplay: delete duplicated function and definition. 2016-09-14 15:10:36 -04:00
Kconfig
Makefile drm/amdgpu: clean up path handling for powerplay 2016-03-21 11:52:13 -04:00
amd_powerplay.c amd/powerplay: use kmemdup instead of kmalloc + memcpy 2016-09-14 15:10:36 -04:00