drivers/leds/flash/leds-rt8515.c:216: undefined reference to `v4l2_flash_release'

From: kernel test robot
Date: Thu Feb 11 2021 - 18:06:13 EST


Hi Linus,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb
commit: e1c6edcbea13de025c3406645b4cce4ac3baf973 leds: rt8515: Add Richtek RT8515 LED driver
date: 12 days ago
config: i386-randconfig-a005-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e1c6edcbea13de025c3406645b4cce4ac3baf973
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e1c6edcbea13de025c3406645b4cce4ac3baf973
# save the attached .config to linux build tree
make W=1 ARCH=i386

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

All errors (new ones prefixed by >>):

ld: drivers/leds/flash/leds-rt8515.o: in function `rt8515_v4l2_flash_release':
>> drivers/leds/flash/leds-rt8515.c:216: undefined reference to `v4l2_flash_release'
ld: drivers/leds/flash/leds-rt8515.o: in function `rt8515_probe':
drivers/leds/flash/leds-rt8515.c:354: undefined reference to `v4l2_flash_init'


vim +216 drivers/leds/flash/leds-rt8515.c

213
214 static void rt8515_v4l2_flash_release(struct rt8515 *rt)
215 {
> 216 v4l2_flash_release(rt->v4l2_flash);
217 }
218

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip