[linux-next:master 5607/7024] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5301: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:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f8550c0d35df3d027724b250a8c5888dfb2fa749
commit: c920888c604d72799d057bbcd9e28a6c003ccfbe [5607/7024] drm/amd/display: Expose new CRC window property
config: x86_64-randconfig-a003-20201119 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b2613fb2f0f53691dd0211895afbb9413457fca7)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c920888c604d72799d057bbcd9e28a6c003ccfbe
        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 c920888c604d72799d057bbcd9e28a6c003ccfbe
        # 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@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5301: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:5301: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:5325: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:5325: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 +5301 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c

  5299	
  5300	#ifdef CONFIG_DEBUG_FS
> 5301	int amdgpu_dm_crtc_atomic_set_property(struct drm_crtc *crtc,
  5302						    struct drm_crtc_state *crtc_state,
  5303						    struct drm_property *property,
  5304						    uint64_t val)
  5305	{
  5306		struct drm_device *dev = crtc->dev;
  5307		struct amdgpu_device *adev = drm_to_adev(dev);
  5308		struct dm_crtc_state *dm_new_state =
  5309			to_dm_crtc_state(crtc_state);
  5310	
  5311		if (property == adev->dm.crc_win_x_start_property)
  5312			dm_new_state->crc_window.x_start = val;
  5313		else if (property == adev->dm.crc_win_y_start_property)
  5314			dm_new_state->crc_window.y_start = val;
  5315		else if (property == adev->dm.crc_win_x_end_property)
  5316			dm_new_state->crc_window.x_end = val;
  5317		else if (property == adev->dm.crc_win_y_end_property)
  5318			dm_new_state->crc_window.y_end = val;
  5319		else
  5320			return -EINVAL;
  5321	
  5322		return 0;
  5323	}
  5324	
> 5325	int amdgpu_dm_crtc_atomic_get_property(struct drm_crtc *crtc,
  5326						    const struct drm_crtc_state *state,
  5327						    struct drm_property *property,
  5328						    uint64_t *val)
  5329	{
  5330		struct drm_device *dev = crtc->dev;
  5331		struct amdgpu_device *adev = drm_to_adev(dev);
  5332		struct dm_crtc_state *dm_state =
  5333			to_dm_crtc_state(state);
  5334	
  5335		if (property == adev->dm.crc_win_x_start_property)
  5336			*val = dm_state->crc_window.x_start;
  5337		else if (property == adev->dm.crc_win_y_start_property)
  5338			*val = dm_state->crc_window.y_start;
  5339		else if (property == adev->dm.crc_win_x_end_property)
  5340			*val = dm_state->crc_window.x_end;
  5341		else if (property == adev->dm.crc_win_y_end_property)
  5342			*val = dm_state->crc_window.y_end;
  5343		else
  5344			return -EINVAL;
  5345	
  5346		return 0;
  5347	}
  5348	#endif
  5349	

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