[radeon-alex:amd-staging-drm-next 677/1015] drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   3c831e196bd7543977d4acd506064636809f1dcf
commit: ac7413ecad5e406065529cda0adaa29c353cc557 [677/1015] drm/amd/amdgpu: disable gfxoff to retrieve gfxclk
config: powerpc64-randconfig-r004-20200710 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        git checkout ac7413ecad5e406065529cda0adaa29c353cc557
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:5: warning: no previous prototype for function 'sienna_cichlid_get_dpm_ultimate_freq' [-Wmissing-prototypes]
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1718:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:5: warning: no previous prototype for function 'sienna_cichlid_set_soft_freq_limited_range' [-Wmissing-prototypes]
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
       ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c:1734:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
   ^
   static 
   2 warnings generated.

vim +/sienna_cichlid_set_soft_freq_limited_range +1734 drivers/gpu/drm/amd/amdgpu/../powerplay/sienna_cichlid_ppt.c

  1717	
> 1718	int sienna_cichlid_get_dpm_ultimate_freq(struct smu_context *smu,
  1719					enum smu_clk_type clk_type,
  1720					uint32_t *min, uint32_t *max)
  1721	{
  1722		struct amdgpu_device *adev = smu->adev;
  1723		int ret;
  1724	
  1725		if (clk_type == SMU_GFXCLK)
  1726			amdgpu_gfx_off_ctrl(adev, false);
  1727		ret = smu_v11_0_get_dpm_ultimate_freq(smu, clk_type, min, max);
  1728		if (clk_type == SMU_GFXCLK)
  1729			amdgpu_gfx_off_ctrl(adev, true);
  1730	
  1731		return ret;
  1732	}
  1733	
> 1734	int sienna_cichlid_set_soft_freq_limited_range(struct smu_context *smu,
  1735					      enum smu_clk_type clk_type,
  1736					      uint32_t min, uint32_t max)
  1737	{
  1738		struct amdgpu_device *adev = smu->adev;
  1739		int ret;
  1740	
  1741		if (clk_type == SMU_GFXCLK)
  1742			amdgpu_gfx_off_ctrl(adev, false);
  1743		ret = smu_v11_0_set_soft_freq_limited_range(smu, clk_type, min, max);
  1744		if (clk_type == SMU_GFXCLK)
  1745			amdgpu_gfx_off_ctrl(adev, true);
  1746	
  1747		return ret;
  1748	}
  1749	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux