From: kernel test robot <lkp@intel.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: [pinchartl-media:streams/v6.0/v11 27/49] drivers/media/v4l2-core/v4l2-subdev.c:156:8: error: call to undeclared function 'v4l2_subdev_state_get_stream_format'; ISO C99 and later do not support implicit function declarations
Date: Thu, 8 Sep 2022 05:15:01 +0800 [thread overview]
Message-ID: <202209080505.7TfHX43B-lkp@intel.com> (raw)
tree: git://linuxtv.org/pinchartl/media.git streams/v6.0/v11
head: c8cf58f00bee6d4f43462b3e3f83ef516c594d61
commit: 46db369d5850a9ac814a5ac236a4d39e390ca217 [27/49] media: subdev: add stream based configuration
config: arm-randconfig-r002-20220907 (https://download.01.org/0day-ci/archive/20220908/202209080505.7TfHX43B-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add pinchartl-media git://linuxtv.org/pinchartl/media.git
git fetch --no-tags pinchartl-media streams/v6.0/v11
git checkout 46db369d5850a9ac814a5ac236a4d39e390ca217
# 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=arm SHELL=/bin/bash drivers/media/v4l2-core/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-subdev.c:156:8: error: call to undeclared function 'v4l2_subdev_state_get_stream_format'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (!v4l2_subdev_state_get_stream_format(state, pad, stream))
^
1 error generated.
vim +/v4l2_subdev_state_get_stream_format +156 drivers/media/v4l2-core/v4l2-subdev.c
150
151 static int check_state(struct v4l2_subdev *sd, struct v4l2_subdev_state *state,
152 u32 which, u32 pad, u32 stream)
153 {
154 #if defined(CONFIG_MEDIA_CONTROLLER)
155 if (sd->flags & V4L2_SUBDEV_FL_MULTIPLEXED) {
> 156 if (!v4l2_subdev_state_get_stream_format(state, pad, stream))
157 return -EINVAL;
158 return 0;
159 }
160 #endif
161
162 if (which == V4L2_SUBDEV_FORMAT_TRY && (!state || !state->pads))
163 return -EINVAL;
164
165 return 0;
166 }
167
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-09-07 21:15 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=202209080505.7TfHX43B-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--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;
as well as URLs for NNTP newsgroup(s).