[linux-next:master 1490/2759] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for 'vangogh_clk_dpm_is_enabled'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ef8b014ee4a1ccd9e751732690a8c7cdeed945e7
commit: d0e4e112a9461a5e319110b26142a97c34b23c90 [1490/2759] drm/amd/pm: add some basic functions to support umd P-state function for vangogh.
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d0e4e112a9461a5e319110b26142a97c34b23c90
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout d0e4e112a9461a5e319110b26142a97c34b23c90
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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/../pm/swsmu/smu11/vangogh_ppt.c:594:6: warning: no previous prototype for 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes]
     594 | bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:626:12: warning: 'vangogh_get_dpm_ultimate_freq' defined but not used [-Wunused-function]
     626 | static int vangogh_get_dpm_ultimate_freq(struct smu_context *smu,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/vangogh_clk_dpm_is_enabled +594 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c

   593	
 > 594	bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
   595					enum smu_clk_type clk_type)
   596	{
   597		enum smu_feature_mask feature_id = 0;
   598	
   599		switch (clk_type) {
   600		case SMU_MCLK:
   601		case SMU_UCLK:
   602		case SMU_FCLK:
   603			feature_id = SMU_FEATURE_DPM_FCLK_BIT;
   604			break;
   605		case SMU_GFXCLK:
   606		case SMU_SCLK:
   607			feature_id = SMU_FEATURE_DPM_GFXCLK_BIT;
   608			break;
   609		case SMU_SOCCLK:
   610			feature_id = SMU_FEATURE_DPM_SOCCLK_BIT;
   611			break;
   612		case SMU_VCLK:
   613		case SMU_DCLK:
   614			feature_id = SMU_FEATURE_VCN_DPM_BIT;
   615			break;
   616		default:
   617			return true;
   618		}
   619	
   620		if (!smu_cmn_feature_is_enabled(smu, feature_id))
   621			return false;
   622	
   623		return true;
   624	}
   625	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux