[linux-next:master 9130/9550] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c:329: warning: Function parameter or struct member 'state' not described in 'dc_state_rem_all_planes_for_stream'

[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:   20d857259d7d10cd0d5e8b60608455986167cfad
commit: 09a4ec5da92c84952db117f0d576fdd8368c873a [9130/9550] drm/amd/display: Refactor dc_state interface
config: riscv-randconfig-r003-20220327 (https://download.01.org/0day-ci/archive/20231220/202312202105.vqJ5GA70-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231220/202312202105.vqJ5GA70-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/202312202105.vqJ5GA70-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c:329: warning: Function parameter or struct member 'state' not described in 'dc_state_rem_all_planes_for_stream'
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c:329: warning: Excess function parameter 'context' description in 'dc_state_rem_all_planes_for_stream'
--
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:540: warning: Function parameter or struct member 'context' not described in 'populate_subvp_cmd_drr_info'


vim +329 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_state.c

   313	
   314	/**
   315	 * dc_state_rem_all_planes_for_stream - Remove planes attached to the target stream.
   316	 *
   317	 * @dc: Current dc state.
   318	 * @stream: Target stream, which we want to remove the attached plans.
   319	 * @context: New context.
   320	 *
   321	 * Return:
   322	 * Return true if DC was able to remove all planes from the target
   323	 * stream, otherwise, return false.
   324	 */
   325	bool dc_state_rem_all_planes_for_stream(
   326			const struct dc *dc,
   327			struct dc_stream_state *stream,
   328			struct dc_state *state)
 > 329	{
   330		int i, old_plane_count;
   331		struct dc_stream_status *stream_status = NULL;
   332		struct dc_plane_state *del_planes[MAX_SURFACE_NUM] = { 0 };
   333	
   334		for (i = 0; i < state->stream_count; i++)
   335			if (state->streams[i] == stream) {
   336				stream_status = &state->stream_status[i];
   337				break;
   338			}
   339	
   340		if (stream_status == NULL) {
   341			dm_error("Existing stream %p not found!\n", stream);
   342			return false;
   343		}
   344	
   345		old_plane_count = stream_status->plane_count;
   346	
   347		for (i = 0; i < old_plane_count; i++)
   348			del_planes[i] = stream_status->plane_states[i];
   349	
   350		for (i = 0; i < old_plane_count; i++)
   351			if (!dc_state_remove_plane(dc, stream, del_planes[i], state))
   352				return false;
   353	
   354		return true;
   355	}
   356	

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