tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c
commit: d8932f38c10ffb4b604c97d0765b500e8964cbd1 media: et8ek8: Add support for 
flash and lens devices
date:   3 weeks ago
config: x86_64-randconfig-s0-11240340 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout d8932f38c10ffb4b604c97d0765b500e8964cbd1
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/i2c/et8ek8/et8ek8_driver.o: In function `et8ek8_probe':
>> drivers/media/i2c/et8ek8/et8ek8_driver.c:1456: undefined reference to 
>> `v4l2_async_register_subdev_sensor_common'

vim +1456 drivers/media/i2c/et8ek8/et8ek8_driver.c

  1406  
  1407  static int et8ek8_probe(struct i2c_client *client,
  1408                          const struct i2c_device_id *devid)
  1409  {
  1410          struct et8ek8_sensor *sensor;
  1411          struct device *dev = &client->dev;
  1412          int ret;
  1413  
  1414          sensor = devm_kzalloc(&client->dev, sizeof(*sensor), 
GFP_KERNEL);
  1415          if (!sensor)
  1416                  return -ENOMEM;
  1417  
  1418          sensor->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
  1419          if (IS_ERR(sensor->reset)) {
  1420                  dev_dbg(&client->dev, "could not request reset gpio\n");
  1421                  return PTR_ERR(sensor->reset);
  1422          }
  1423  
  1424          sensor->vana = devm_regulator_get(dev, "vana");
  1425          if (IS_ERR(sensor->vana)) {
  1426                  dev_err(&client->dev, "could not get regulator for 
vana\n");
  1427                  return PTR_ERR(sensor->vana);
  1428          }
  1429  
  1430          sensor->ext_clk = devm_clk_get(dev, NULL);
  1431          if (IS_ERR(sensor->ext_clk)) {
  1432                  dev_err(&client->dev, "could not get clock\n");
  1433                  return PTR_ERR(sensor->ext_clk);
  1434          }
  1435  
  1436          ret = of_property_read_u32(dev->of_node, "clock-frequency",
  1437                                     &sensor->xclk_freq);
  1438          if (ret) {
  1439                  dev_warn(dev, "can't get clock-frequency\n");
  1440                  return ret;
  1441          }
  1442  
  1443          mutex_init(&sensor->power_lock);
  1444  
  1445          v4l2_i2c_subdev_init(&sensor->subdev, client, &et8ek8_ops);
  1446          sensor->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
  1447          sensor->subdev.internal_ops = &et8ek8_internal_ops;
  1448  
  1449          sensor->pad.flags = MEDIA_PAD_FL_SOURCE;
  1450          ret = media_entity_pads_init(&sensor->subdev.entity, 1, 
&sensor->pad);
  1451          if (ret < 0) {
  1452                  dev_err(&client->dev, "media entity init failed!\n");
  1453                  goto err_mutex;
  1454          }
  1455  
> 1456          ret = v4l2_async_register_subdev_sensor_common(&sensor->subdev);
  1457          if (ret < 0)
  1458                  goto err_entity;
  1459  
  1460          dev_dbg(dev, "initialized!\n");
  1461  
  1462          return 0;
  1463  
  1464  err_entity:
  1465          media_entity_cleanup(&sensor->subdev.entity);
  1466  err_mutex:
  1467          mutex_destroy(&sensor->power_lock);
  1468          return ret;
  1469  }
  1470  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to