* [ti:ti-rt-linux-5.10.y 4662/9999] drivers/media/i2c/mt9v111.c:803:25: error: 'cfg' undeclared
@ 2022-02-01 8:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-01 8:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4680 bytes --]
Hi Tomi,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 922b857ee8fee5618ce14477086f791cf4dfdf15
commit: fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161 [4662/9999] media: v4l2-subdev: add subdev-wide state struct
config: ia64-randconfig-r012-20220131 (https://download.01.org/0day-ci/archive/20220201/202202011635.eGvb9qwX-lkp(a)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 ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161
# 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:154,
from include/linux/pgtable.h:6,
from arch/ia64/include/asm/uaccess.h:40,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/poll.h:10,
from include/media/media-devnode.h:19,
from include/media/media-device.h:17,
from include/media/media-request.h:20,
from include/media/v4l2-ctrls.h:14,
from drivers/media/i2c/mt9v111.c:24:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
arch/ia64/include/asm/mmu_context.h:137:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
137 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
drivers/media/i2c/mt9v111.c: In function '__mt9v111_get_pad_format':
>> drivers/media/i2c/mt9v111.c:803:25: error: 'cfg' undeclared (first use in this function)
803 | return &cfg->try_fmt;
| ^~~
drivers/media/i2c/mt9v111.c:803:25: note: each undeclared identifier is reported only once for each function it appears in
vim +/cfg +803 drivers/media/i2c/mt9v111.c
aab7ed1c392703 Jacopo Mondi 2018-07-25 791
aab7ed1c392703 Jacopo Mondi 2018-07-25 792 static struct v4l2_mbus_framefmt *__mt9v111_get_pad_format(
aab7ed1c392703 Jacopo Mondi 2018-07-25 793 struct mt9v111_dev *mt9v111,
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 794 struct v4l2_subdev_state *sd_state,
aab7ed1c392703 Jacopo Mondi 2018-07-25 795 unsigned int pad,
aab7ed1c392703 Jacopo Mondi 2018-07-25 796 enum v4l2_subdev_format_whence which)
aab7ed1c392703 Jacopo Mondi 2018-07-25 797 {
aab7ed1c392703 Jacopo Mondi 2018-07-25 798 switch (which) {
aab7ed1c392703 Jacopo Mondi 2018-07-25 799 case V4L2_SUBDEV_FORMAT_TRY:
484f9b372dd8da Jacopo Mondi 2018-08-07 800 #if IS_ENABLED(CONFIG_VIDEO_V4L2_SUBDEV_API)
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 801 return v4l2_subdev_get_try_format(&mt9v111->sd, sd_state, pad);
aab7ed1c392703 Jacopo Mondi 2018-07-25 802 #else
aab7ed1c392703 Jacopo Mondi 2018-07-25 @803 return &cfg->try_fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 804 #endif
aab7ed1c392703 Jacopo Mondi 2018-07-25 805 case V4L2_SUBDEV_FORMAT_ACTIVE:
aab7ed1c392703 Jacopo Mondi 2018-07-25 806 return &mt9v111->fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 807 default:
aab7ed1c392703 Jacopo Mondi 2018-07-25 808 return NULL;
aab7ed1c392703 Jacopo Mondi 2018-07-25 809 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 810 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 811
:::::: The code at line 803 was first introduced by commit
:::::: aab7ed1c392703604fbdc5bd5005dfb61a0b32f9 media: i2c: Add driver for Aptina MT9V111
:::::: TO: Jacopo Mondi <jacopo+renesas@jmondi.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-01 8:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 8:53 [ti:ti-rt-linux-5.10.y 4662/9999] drivers/media/i2c/mt9v111.c:803:25: error: 'cfg' undeclared kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.