tree: https://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git for-next head: 0bb4e10789943962fc8488c5e965517c713b3be3 commit: 0bb4e10789943962fc8488c5e965517c713b3be3 [8/8] leds: as3645a: Add LED flash class driver config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 0bb4e10789943962fc8488c5e965517c713b3be3 # save the attached .config to linux build tree make.cross ARCH=xtensa All warnings (new ones prefixed by >>): drivers/leds/leds-as3645a.c: In function 'as3645a_v4l2_setup': >> drivers/leds/leds-as3645a.c:649:14: warning: passing argument 4 of 'v4l2_flash_init' from incompatible pointer type flash->vf = v4l2_flash_init(&flash->client->dev, NULL, &flash->fled, ^ In file included from drivers/leds/leds-as3645a.c:32:0: include/media/v4l2-flash-led-class.h:124:20: note: expected 'struct led_classdev_flash *' but argument is of type 'struct led_classdev *' struct v4l2_flash *v4l2_flash_init( ^ vim +/v4l2_flash_init +649 drivers/leds/leds-as3645a.c 633 .torch_intensity = { 634 .min = AS_TORCH_INTENSITY_MIN, 635 .max = flash->cfg.assist_max_ua, 636 .step = AS_TORCH_INTENSITY_STEP, 637 .val = flash->cfg.assist_max_ua, 638 }, 639 .indicator_intensity = { 640 .min = AS_INDICATOR_INTENSITY_MIN, 641 .max = flash->cfg.indicator_max_ua, 642 .step = AS_INDICATOR_INTENSITY_STEP, 643 .val = flash->cfg.indicator_max_ua, 644 }, 645 }; 646 647 strlcpy(cfg.dev_name, led->name, sizeof(cfg.dev_name)); 648 > 649 flash->vf = v4l2_flash_init(&flash->client->dev, NULL, &flash->fled, 650 &flash->iled_cdev, NULL, &cfg); 651 if (IS_ERR(flash->vf)) 652 return PTR_ERR(flash->vf); 653 654 return 0; 655 } 656 657 static int as3645a_probe(struct i2c_client *client) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip