[radeon-alex:amd-staging-drm-next 576/598] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables'

kernel test robot lkp at intel.com
Tue Nov 17 07:01:04 UTC 2020


Hi Xiaojian,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   11e500d2892a2b18e438c12e1e992b241aaf1c8b
commit: 53501c771afda638485683d189a2b2e2ad776d38 [576/598] drm/amd/pm: add the fine grain tuning function for vangogh
config: x86_64-randconfig-a004-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ace9653c11c6308401dcda2e8b26bf97e6e66e30)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-staging-drm-next
        git checkout 53501c771afda638485683d189a2b2e2ad776d38
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:5: warning: no previous prototype for function 'vangogh_set_default_dpm_tables' [-Wmissing-prototypes]
   int vangogh_set_default_dpm_tables(struct smu_context *smu)
       ^
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:764:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int vangogh_set_default_dpm_tables(struct smu_context *smu)
   ^
   static 
   1 warning generated.

vim +/vangogh_set_default_dpm_tables +764 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c

   763	
 > 764	int vangogh_set_default_dpm_tables(struct smu_context *smu)
   765	{
   766		struct smu_table_context *smu_table = &smu->smu_table;
   767	
   768		return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, smu_table->clocks_table, false);
   769	}
   770	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30411 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201117/f5a60d29/attachment-0001.gz>


More information about the dri-devel mailing list