llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Igor Torrente <igormtorrente@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	dri-devel@lists.freedesktop.org,
	Melissa Wen <melissa.srw@gmail.com>
Subject: [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
Date: Tue, 6 Sep 2022 09:04:24 +0800	[thread overview]
Message-ID: <202209060828.2Q6b2EhU-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-09-06  1:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202209060828.2Q6b2EhU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=igormtorrente@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    --cc=melissa.srw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).