[radeon-alex:amd-staging-drm-next-vangogh 494/544] drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:6: warning: no previous prototype for function 'amdgpu_virt_update_vf2pf_work_item'

kernel test robot lkp at intel.com
Sat Sep 26 02:39:01 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next-vangogh
head:   6067a749d66ef3815908c86ee0b08733e391955f
commit: 614e7ac92979c4fe35cca713fa282609839e1be1 [494/544] drm/amdgpu: Implement new guest side VF2PF message transaction
config: arm-randconfig-r021-20200925 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c32e69b2ce7abfb151a87ba363ac9e25abf7d417)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-staging-drm-next-vangogh
        git checkout 614e7ac92979c4fe35cca713fa282609839e1be1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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/amdgpu_virt.c:557:6: warning: no previous prototype for function 'amdgpu_virt_update_vf2pf_work_item' [-Wmissing-prototypes]
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
        ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:557:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   ^
   static 
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:586:12: error: no member named 'fw_vram_usage' in 'struct amdgpu_device'
           if (adev->fw_vram_usage.va != NULL) {
               ~~~~  ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:591:11: error: no member named 'fw_vram_usage' in 'struct amdgpu_device'
                           (adev->fw_vram_usage.va + (AMD_SRIOV_MSG_PF2VF_OFFSET_KB << 10));
                            ~~~~  ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:594:11: error: no member named 'fw_vram_usage' in 'struct amdgpu_device'
                           (adev->fw_vram_usage.va + (AMD_SRIOV_MSG_VF2PF_OFFSET_KB << 10));
                            ~~~~  ^
   1 warning and 3 errors generated.

vim +/amdgpu_virt_update_vf2pf_work_item +557 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c

   556	
 > 557	void amdgpu_virt_update_vf2pf_work_item(struct work_struct *work)
   558	{
   559		struct amdgpu_device *adev = container_of(work, struct amdgpu_device, virt.vf2pf_work.work);
   560	
   561		amdgpu_virt_read_pf2vf_data(adev);
   562		amdgpu_virt_write_vf2pf_data(adev);
   563	
   564		schedule_delayed_work(&(adev->virt.vf2pf_work), adev->virt.vf2pf_update_interval_ms);
   565	}
   566	

---
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: 34536 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200926/154ec8c4/attachment-0001.gz>


More information about the dri-devel mailing list