* [ti:ti-linux-5.10.y-cicd 15656/22025] drivers/media/v4l2-core/v4l2-subdev.c:917:17: error: implicit declaration of function '__v4l2_subdev_state_alloc'
@ 2023-04-07 14:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-07 14:13 UTC (permalink / raw)
Cc: oe-kbuild-all, vigneshr, nm
Hi Tomi,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.10.y-cicd
head: 991c5ce91e43cb620f534dc9fe7b0ad21f4f4388
commit: 6aadd6b6f27234516b19f8d6d4d102184d70d394 [15656/22025] media: subdev: add active state to struct v4l2_subdev
config: nios2-randconfig-r035-20230403 (https://download.01.org/0day-ci/archive/20230407/202304072232.p6L2AkQm-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.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 ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-linux-5.10.y-cicd
git checkout 6aadd6b6f27234516b19f8d6d4d102184d70d394
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=nios2 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>
| Link: https://lore.kernel.org/oe-kbuild-all/202304072232.p6L2AkQm-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_init_finalize':
>> drivers/media/v4l2-core/v4l2-subdev.c:917:17: error: implicit declaration of function '__v4l2_subdev_state_alloc' [-Werror=implicit-function-declaration]
917 | state = __v4l2_subdev_state_alloc(sd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-subdev.c:917:15: warning: assignment to 'struct v4l2_subdev_state *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
917 | state = __v4l2_subdev_state_alloc(sd);
| ^
drivers/media/v4l2-core/v4l2-subdev.c: In function 'v4l2_subdev_cleanup':
>> drivers/media/v4l2-core/v4l2-subdev.c:929:9: error: implicit declaration of function '__v4l2_subdev_state_free' [-Werror=implicit-function-declaration]
929 | __v4l2_subdev_state_free(sd->state);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/__v4l2_subdev_state_alloc +917 drivers/media/v4l2-core/v4l2-subdev.c
912
913 int v4l2_subdev_init_finalize(struct v4l2_subdev *sd)
914 {
915 struct v4l2_subdev_state *state;
916
> 917 state = __v4l2_subdev_state_alloc(sd);
918 if (IS_ERR(state))
919 return PTR_ERR(state);
920
921 sd->state = state;
922
923 return 0;
924 }
925 EXPORT_SYMBOL_GPL(v4l2_subdev_init_finalize);
926
927 void v4l2_subdev_cleanup(struct v4l2_subdev *sd)
928 {
> 929 __v4l2_subdev_state_free(sd->state);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-07 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 14:13 [ti:ti-linux-5.10.y-cicd 15656/22025] drivers/media/v4l2-core/v4l2-subdev.c:917:17: error: implicit declaration of function '__v4l2_subdev_state_alloc' kernel test robot
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).