[linux-next:master 1757/2025] 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'

[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: 146b085eadd2ce405e67492a80d6e767748d5642 [1757/2025] drm/amdgpu: update the handle ptr in early_init
config: riscv-buildonly-randconfig-r004-20230123 (https://download.01.org/0day-ci/archive/20241002/202410021623.jPupzVoB-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/202410021623.jPupzVoB-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/202410021623.jPupzVoB-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> 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_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_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_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_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_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_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_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/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_v5_0_0.c:96: warning: Function parameter or struct member 'ip_block' not described in 'vcn_v5_0_0_early_init'
>> drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c:96: warning: Excess function parameter 'handle' description in 'vcn_v5_0_0_early_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'
..


vim +49 drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c

6ac27241106bc9 Leo Liu      2019-11-08  35  
6ac27241106bc9 Leo Liu      2019-11-08  36  static void jpeg_v2_0_set_dec_ring_funcs(struct amdgpu_device *adev);
6ac27241106bc9 Leo Liu      2019-11-08  37  static void jpeg_v2_0_set_irq_funcs(struct amdgpu_device *adev);
6ac27241106bc9 Leo Liu      2019-11-08  38  static int jpeg_v2_0_set_powergating_state(void *handle,
6ac27241106bc9 Leo Liu      2019-11-08  39  				enum amd_powergating_state state);
6ac27241106bc9 Leo Liu      2019-11-08  40  
6ac27241106bc9 Leo Liu      2019-11-08  41  /**
6ac27241106bc9 Leo Liu      2019-11-08  42   * jpeg_v2_0_early_init - set function pointers
6ac27241106bc9 Leo Liu      2019-11-08  43   *
6ac27241106bc9 Leo Liu      2019-11-08  44   * @handle: amdgpu_device pointer
6ac27241106bc9 Leo Liu      2019-11-08  45   *
6ac27241106bc9 Leo Liu      2019-11-08  46   * Set ring and irq function pointers
6ac27241106bc9 Leo Liu      2019-11-08  47   */
146b085eadd2ce Sunil Khatri 2024-09-25  48  static int jpeg_v2_0_early_init(struct amdgpu_ip_block *ip_block)
6ac27241106bc9 Leo Liu      2019-11-08 @49  {
146b085eadd2ce Sunil Khatri 2024-09-25  50  	struct amdgpu_device *adev = ip_block->adev;
6ac27241106bc9 Leo Liu      2019-11-08  51  
6ac27241106bc9 Leo Liu      2019-11-08  52  	adev->jpeg.num_jpeg_inst = 1;
28bb7f13e70dcd James Zhu    2023-05-24  53  	adev->jpeg.num_jpeg_rings = 1;
6ac27241106bc9 Leo Liu      2019-11-08  54  
6ac27241106bc9 Leo Liu      2019-11-08  55  	jpeg_v2_0_set_dec_ring_funcs(adev);
6ac27241106bc9 Leo Liu      2019-11-08  56  	jpeg_v2_0_set_irq_funcs(adev);
6ac27241106bc9 Leo Liu      2019-11-08  57  
6ac27241106bc9 Leo Liu      2019-11-08  58  	return 0;
6ac27241106bc9 Leo Liu      2019-11-08  59  }
6ac27241106bc9 Leo Liu      2019-11-08  60  

:::::: The code at line 49 was first introduced by commit
:::::: 6ac27241106bc946bd50032f4cd96899c6a6fe69 drm/amdgpu: add JPEG v2.0 function supports

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