public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Hans Verkuil <hverkuil@xs4all.nl>
Subject: [sailus-media-tree:master 29/30] drivers/media/v4l2-core/v4l2-subdev.c:1040:15: error: implicit declaration of function 'v4l2_subdev_get_pad_format'; did you mean 'v4l2_subdev_get_fmt'?
Date: Sat, 9 Apr 2022 06:43:12 +0800	[thread overview]
Message-ID: <202204090639.C9t6QLg0-lkp@intel.com> (raw)

tree:   git://linuxtv.org/sailus/media_tree.git master
head:   bd1d801f302289ddbf86ff6c38fcc91aef8e7609
commit: c503509891473482b5e88fd8c3d7b81015432f1c [29/30] media: subdev: add v4l2_subdev_get_fmt() helper function
config: ia64-randconfig-r011-20220408 (https://download.01.org/0day-ci/archive/20220409/202204090639.C9t6QLg0-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0
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 sailus-media-tree git://linuxtv.org/sailus/media_tree.git
        git fetch --no-tags sailus-media-tree master
        git checkout c503509891473482b5e88fd8c3d7b81015432f1c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/media/v4l2-core/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:153,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:29,
                    from drivers/media/v4l2-core/v4l2-subdev.c:12:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     127 |         unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                                ^~~~~~~
   drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_get_fmt':
>> drivers/media/v4l2-core/v4l2-subdev.c:1040:15: error: implicit declaration of function 'v4l2_subdev_get_pad_format'; did you mean 'v4l2_subdev_get_fmt'? [-Werror=implicit-function-declaration]
    1040 |         fmt = v4l2_subdev_get_pad_format(sd, state, format->pad);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |               v4l2_subdev_get_fmt
>> drivers/media/v4l2-core/v4l2-subdev.c:1040:13: warning: assignment to 'struct v4l2_mbus_framefmt *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1040 |         fmt = v4l2_subdev_get_pad_format(sd, state, format->pad);
         |             ^
   cc1: some warnings being treated as errors


vim +1040 drivers/media/v4l2-core/v4l2-subdev.c

  1031	
  1032	int v4l2_subdev_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_state *state,
  1033				struct v4l2_subdev_format *format)
  1034	{
  1035		struct v4l2_mbus_framefmt *fmt;
  1036	
  1037		if (format->pad >= sd->entity.num_pads)
  1038			return -EINVAL;
  1039	
> 1040		fmt = v4l2_subdev_get_pad_format(sd, state, format->pad);
  1041		if (!fmt)
  1042			return -EINVAL;
  1043	
  1044		format->format = *fmt;
  1045	
  1046		return 0;
  1047	}
  1048	EXPORT_SYMBOL_GPL(v4l2_subdev_get_fmt);
  1049	

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

                 reply	other threads:[~2022-04-08 22:44 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=202204090639.C9t6QLg0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hverkuil@xs4all.nl \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomi.valkeinen@ideasonboard.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