[linux-next:master 1759/2025] drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c:485: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v1_0_sw_init'

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

 



Hi Sunil,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   fe21733536749bb1b31c9c84e0b8d2ab8d82ce13
commit: d5347e8d2711bb01c79698408ec189a7b7cfe45e [1759/2025] drm/amdgpu: update the handle ptr in sw_init
config: riscv-buildonly-randconfig-r004-20230123 (https://download.01.org/0day-ci/archive/20241002/202410021805.ih3ycw6J-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241002/202410021805.ih3ycw6J-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410021805.ih3ycw6J-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c:466: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v1_0_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c:466: warning: Excess function parameter 'handle' description in 'jpeg_v1_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c:485: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v1_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c:485: warning: Excess function parameter 'handle' description in 'jpeg_v1_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c:49: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v2_0_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c:49: warning: Excess function parameter 'handle' description in 'jpeg_v2_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c:69: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v2_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c:69: warning: Excess function parameter 'handle' description in 'jpeg_v2_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c:58: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v2_5_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c:58: warning: Excess function parameter 'handle' description in 'jpeg_v2_5_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c:89: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v2_5_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c:89: warning: Excess function parameter 'handle' description in 'jpeg_v2_5_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c:104: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v1_0_early_init'
   drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c:104: warning: Excess function parameter 'handle' description in 'vcn_v1_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c:126: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v1_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c:126: warning: Excess function parameter 'handle' description in 'vcn_v1_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c:56: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c:56: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c:78: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c:78: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c:69: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_5_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c:69: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_5_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c:102: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_5_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c:102: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_5_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c:50: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v5_0_0_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c:50: warning: Excess function parameter 'handle' description in 'jpeg_v5_0_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c:70: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v5_0_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c:70: warning: Excess function parameter 'handle' description in 'jpeg_v5_0_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c:50: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v3_0_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c:50: warning: Excess function parameter 'handle' description in 'jpeg_v3_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c:83: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v3_0_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c:83: warning: Excess function parameter 'handle' description in 'jpeg_v3_0_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c:76: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_3_early_init'
   drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c:76: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_3_early_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c:96: warning: Function parameter or struct member 'ip_block' not described in 'jpeg_v4_0_3_sw_init'
>> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c:96: warning: Excess function parameter 'handle' description in 'jpeg_v4_0_3_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:113: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v4_0_5_early_init'
   drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:113: warning: Excess function parameter 'handle' description in 'vcn_v4_0_5_early_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:132: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v4_0_5_sw_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c:132: warning: Excess function parameter 'handle' description in 'vcn_v4_0_5_sw_init'
--
   drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:119: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v2_5_early_init'
   drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:119: warning: Excess function parameter 'handle' description in 'vcn_v2_5_early_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:159: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v2_5_sw_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c:159: warning: Excess function parameter 'handle' description in 'vcn_v2_5_sw_init'
..


vim +485 drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c

bb0db70f3f75e0 Leo Liu         2019-11-08  477  
bb0db70f3f75e0 Leo Liu         2019-11-08  478  /**
bb0db70f3f75e0 Leo Liu         2019-11-08  479   * jpeg_v1_0_sw_init - sw init for JPEG block
bb0db70f3f75e0 Leo Liu         2019-11-08  480   *
bb0db70f3f75e0 Leo Liu         2019-11-08  481   * @handle: amdgpu_device pointer
bb0db70f3f75e0 Leo Liu         2019-11-08  482   *
bb0db70f3f75e0 Leo Liu         2019-11-08  483   */
d5347e8d2711bb Sunil Khatri    2024-09-26  484  int jpeg_v1_0_sw_init(struct amdgpu_ip_block *ip_block)
bb0db70f3f75e0 Leo Liu         2019-11-08 @485  {
d5347e8d2711bb Sunil Khatri    2024-09-26  486  	struct amdgpu_device *adev = ip_block->adev;
bb0db70f3f75e0 Leo Liu         2019-11-08  487  	struct amdgpu_ring *ring;
bb0db70f3f75e0 Leo Liu         2019-11-08  488  	int r;
bb0db70f3f75e0 Leo Liu         2019-11-08  489  
bb0db70f3f75e0 Leo Liu         2019-11-08  490  	/* JPEG TRAP */
bb0db70f3f75e0 Leo Liu         2019-11-08  491  	r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, 126, &adev->jpeg.inst->irq);
bb0db70f3f75e0 Leo Liu         2019-11-08  492  	if (r)
bb0db70f3f75e0 Leo Liu         2019-11-08  493  		return r;
bb0db70f3f75e0 Leo Liu         2019-11-08  494  
bc224553843e52 James Zhu       2022-05-24  495  	ring = adev->jpeg.inst->ring_dec;
f4caf5842652f0 Hawking Zhang   2022-09-14  496  	ring->vm_hub = AMDGPU_MMHUB0(0);
bb0db70f3f75e0 Leo Liu         2019-11-08  497  	sprintf(ring->name, "jpeg_dec");
1c6d567bdf73a2 Nirmoy Das      2020-04-01  498  	r = amdgpu_ring_init(adev, ring, 512, &adev->jpeg.inst->irq,
c107171b8d3241 Christian König 2021-02-02  499  			     0, AMDGPU_RING_PRIO_DEFAULT, NULL);
bb0db70f3f75e0 Leo Liu         2019-11-08  500  	if (r)
bb0db70f3f75e0 Leo Liu         2019-11-08  501  		return r;
bb0db70f3f75e0 Leo Liu         2019-11-08  502  
bc224553843e52 James Zhu       2022-05-24  503  	adev->jpeg.internal.jpeg_pitch[0] = adev->jpeg.inst->external.jpeg_pitch[0] =
bb0db70f3f75e0 Leo Liu         2019-11-08  504  		SOC15_REG_OFFSET(JPEG, 0, mmUVD_JPEG_PITCH);
bb0db70f3f75e0 Leo Liu         2019-11-08  505  
bb0db70f3f75e0 Leo Liu         2019-11-08  506  	return 0;
bb0db70f3f75e0 Leo Liu         2019-11-08  507  }
bb0db70f3f75e0 Leo Liu         2019-11-08  508  

:::::: The code at line 485 was first introduced by commit
:::::: bb0db70f3f75e0d994a627f22c3ff2d8ec6191c4 drm/amdgpu: separate JPEG1.0 code out from VCN1.0

:::::: TO: Leo Liu <leo.liu@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@xxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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