[drm-misc:for-linux-next 3/9] drivers/gpu/drm/drm_atomic_helper.c:802: warning: expecting prototype for drm_atomic_helper_check_wb_connector_state(). Prototype was for drm_atomic_helper_check_wb_encoder_state() instead

kernel test robot lkp at intel.com
Tue Sep 6 01:04:24 UTC 2022


tree:   git://anongit.freedesktop.org/drm/drm-misc for-linux-next
head:   396369d6754993e40f1c84b2e22e40e92dfa4c49
commit: 254fe9c106ed69245fbe0beac582054c98a91482 [3/9] drm: drm_atomic_helper: Add a new helper to deal with the writeback connector validation
config: i386-randconfig-a011-20220905 (https://download.01.org/0day-ci/archive/20220906/202209060828.2Q6b2EhU-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
        git remote add drm-misc git://anongit.freedesktop.org/drm/drm-misc
        git fetch --no-tags drm-misc for-linux-next
        git checkout 254fe9c106ed69245fbe0beac582054c98a91482
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_atomic_helper.c:802: warning: expecting prototype for drm_atomic_helper_check_wb_connector_state(). Prototype was for drm_atomic_helper_check_wb_encoder_state() instead


vim +802 drivers/gpu/drm/drm_atomic_helper.c

   787	
   788	/**
   789	 * drm_atomic_helper_check_wb_connector_state() - Check writeback encoder state
   790	 * @encoder: encoder state to check
   791	 * @conn_state: connector state to check
   792	 *
   793	 * Checks if the writeback connector state is valid, and returns an error if it
   794	 * isn't.
   795	 *
   796	 * RETURNS:
   797	 * Zero for success or -errno
   798	 */
   799	int
   800	drm_atomic_helper_check_wb_encoder_state(struct drm_encoder *encoder,
   801						 struct drm_connector_state *conn_state)
 > 802	{
   803		struct drm_writeback_job *wb_job = conn_state->writeback_job;
   804		struct drm_property_blob *pixel_format_blob;
   805		struct drm_framebuffer *fb;
   806		size_t i, nformats;
   807		u32 *formats;
   808	
   809		if (!wb_job || !wb_job->fb)
   810			return 0;
   811	
   812		pixel_format_blob = wb_job->connector->pixel_formats_blob_ptr;
   813		nformats = pixel_format_blob->length / sizeof(u32);
   814		formats = pixel_format_blob->data;
   815		fb = wb_job->fb;
   816	
   817		for (i = 0; i < nformats; i++)
   818			if (fb->format->format == formats[i])
   819				return 0;
   820	
   821		drm_dbg_kms(encoder->dev, "Invalid pixel format %p4cc\n", &fb->format->format);
   822	
   823		return -EINVAL;
   824	}
   825	EXPORT_SYMBOL(drm_atomic_helper_check_wb_encoder_state);
   826	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


More information about the dri-devel mailing list