[radeon-alex:amd-staging-drm-next 593/598] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5374:5: warning: no previous prototype for function 'amdgpu_dm_crtc_atomic_set_property'

[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:   11e500d2892a2b18e438c12e1e992b241aaf1c8b
commit: 110d586ba77ed573eb7464ca69b6490ec0b70c5f [593/598] drm/amd/display: Expose new CRC window property
config: arm64-randconfig-r034-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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-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 110d586ba77ed573eb7464ca69b6490ec0b70c5f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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/../display/amdgpu_dm/amdgpu_dm.c:5374:5: warning: no previous prototype for function 'amdgpu_dm_crtc_atomic_set_property' [-Wmissing-prototypes]
   int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
       ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5374:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
   ^
   static 
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5398:5: warning: no previous prototype for function 'amdgpu_dm_crtc_atomic_get_property' [-Wmissing-prototypes]
   int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
       ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5398:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
   ^
   static 
   2 warnings generated.

vim +/amdgpu_dm_crtc_atomic_set_property +5374 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

  5372	
  5373	#ifdef CONFIG_DEBUG_FS
> 5374	int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
  5375						    struct drm_crtc_state *crtc_state,
  5376						    struct drm_property *property,
  5377						    uint64_t val)
  5378	{
  5379		struct drm_device *dev = crtc->dev;
  5380		struct amdgpu_device *adev = drm_to_adev(dev);
  5381		struct dm_crtc_state *dm_new_state =
  5382			to_dm_crtc_state(crtc_state);
  5383	
  5384		if (property == adev->dm.crc_win_x_start_property)
  5385			dm_new_state->crc_window.x_start = val;
  5386		else if (property == adev->dm.crc_win_y_start_property)
  5387			dm_new_state->crc_window.y_start = val;
  5388		else if (property == adev->dm.crc_win_x_end_property)
  5389			dm_new_state->crc_window.x_end = val;
  5390		else if (property == adev->dm.crc_win_y_end_property)
  5391			dm_new_state->crc_window.y_end = val;
  5392		else
  5393			return -EINVAL;
  5394	
  5395		return 0;
  5396	}
  5397	
> 5398	int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
  5399						    const struct drm_crtc_state *state,
  5400						    struct drm_property *property,
  5401						    uint64_t *val)
  5402	{
  5403		struct drm_device *dev = crtc->dev;
  5404		struct amdgpu_device *adev = drm_to_adev(dev);
  5405		struct dm_crtc_state *dm_state =
  5406			to_dm_crtc_state(state);
  5407	
  5408		if (property == adev->dm.crc_win_x_start_property)
  5409			*val = dm_state->crc_window.x_start;
  5410		else if (property == adev->dm.crc_win_y_start_property)
  5411			*val = dm_state->crc_window.y_start;
  5412		else if (property == adev->dm.crc_win_x_end_property)
  5413			*val = dm_state->crc_window.x_end;
  5414		else if (property == adev->dm.crc_win_y_end_property)
  5415			*val = dm_state->crc_window.y_end;
  5416		else
  5417			return -EINVAL;
  5418	
  5419		return 0;
  5420	}
  5421	#endif
  5422	

---
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