tree: git://linuxtv.org/media_tree.git master head: fdb9e30e9143ac92be79f58c234db9b92c561bd4 commit: a3b91d8bd1e034c8ed89d3f55243478af97a0a52 [15/230] media: Kconfig: better support hybrid TV devices config: powerpc-randconfig-a001-20200421 (attached as .config) compiler: powerpc64le-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout a3b91d8bd1e034c8ed89d3f55243478af97a0a52 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): powerpc64le-linux-ld: arch/powerpc/platforms/pseries/lpar.o:(.toc+0x0): undefined reference to `mmu_pid_bits' powerpc64le-linux-ld: drivers/media/tuners/e4000.o: in function `e4000_remove': >> drivers/media/tuners/e4000.c:717: undefined reference to `v4l2_ctrl_handler_free' powerpc64le-linux-ld: drivers/media/tuners/e4000.o: in function `e4000_probe': >> drivers/media/tuners/e4000.c:659: undefined reference to `v4l2_ctrl_handler_init_class' >> powerpc64le-linux-ld: drivers/media/tuners/e4000.c:660: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:662: undefined reference to `v4l2_ctrl_new_std' >> powerpc64le-linux-ld: drivers/media/tuners/e4000.c:664: undefined reference to `v4l2_ctrl_auto_cluster' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:665: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:667: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:669: undefined reference to `v4l2_ctrl_auto_cluster' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:670: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:672: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:674: undefined reference to `v4l2_ctrl_auto_cluster' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:675: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:677: undefined reference to `v4l2_ctrl_new_std' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:679: undefined reference to `v4l2_ctrl_auto_cluster' powerpc64le-linux-ld: drivers/media/tuners/e4000.c:680: undefined reference to `v4l2_ctrl_new_std' >> powerpc64le-linux-ld: drivers/media/tuners/e4000.c:685: undefined reference to `v4l2_ctrl_handler_free' >> powerpc64le-linux-ld: drivers/media/tuners/e4000.c:692: undefined reference to `v4l2_i2c_subdev_init' vim +717 drivers/media/tuners/e4000.c ed85adaad62472 Antti Palosaari 2012-09-01 611 28fd31f82dccfc Antti Palosaari 2013-10-15 612 static int e4000_probe(struct i2c_client *client, 28fd31f82dccfc Antti Palosaari 2013-10-15 613 const struct i2c_device_id *id) ed85adaad62472 Antti Palosaari 2012-09-01 614 { f8b9b871f832a6 Antti Palosaari 2015-04-21 615 struct e4000_dev *dev; 28fd31f82dccfc Antti Palosaari 2013-10-15 616 struct e4000_config *cfg = client->dev.platform_data; 28fd31f82dccfc Antti Palosaari 2013-10-15 617 struct dvb_frontend *fe = cfg->fe; ed85adaad62472 Antti Palosaari 2012-09-01 618 int ret; f8b9b871f832a6 Antti Palosaari 2015-04-21 619 unsigned int uitmp; bd428bbc7527d4 Antti Palosaari 2014-02-08 620 static const struct regmap_config regmap_config = { bd428bbc7527d4 Antti Palosaari 2014-02-08 621 .reg_bits = 8, bd428bbc7527d4 Antti Palosaari 2014-02-08 622 .val_bits = 8, bd428bbc7527d4 Antti Palosaari 2014-02-08 623 }; ed85adaad62472 Antti Palosaari 2012-09-01 624 f8b9b871f832a6 Antti Palosaari 2015-04-21 625 dev = kzalloc(sizeof(*dev), GFP_KERNEL); f8b9b871f832a6 Antti Palosaari 2015-04-21 626 if (!dev) { ed85adaad62472 Antti Palosaari 2012-09-01 627 ret = -ENOMEM; ed85adaad62472 Antti Palosaari 2012-09-01 628 goto err; ed85adaad62472 Antti Palosaari 2012-09-01 629 } ed85adaad62472 Antti Palosaari 2012-09-01 630 f8b9b871f832a6 Antti Palosaari 2015-04-21 631 dev->clk = cfg->clock; f8b9b871f832a6 Antti Palosaari 2015-04-21 632 dev->client = client; f8b9b871f832a6 Antti Palosaari 2015-04-21 633 dev->fe = cfg->fe; f8b9b871f832a6 Antti Palosaari 2015-04-21 634 dev->regmap = devm_regmap_init_i2c(client, ®map_config); f8b9b871f832a6 Antti Palosaari 2015-04-21 635 if (IS_ERR(dev->regmap)) { f8b9b871f832a6 Antti Palosaari 2015-04-21 636 ret = PTR_ERR(dev->regmap); f8b9b871f832a6 Antti Palosaari 2015-04-21 637 goto err_kfree; bd428bbc7527d4 Antti Palosaari 2014-02-08 638 } ed85adaad62472 Antti Palosaari 2012-09-01 639 ed85adaad62472 Antti Palosaari 2012-09-01 640 /* check if the tuner is there */ f8b9b871f832a6 Antti Palosaari 2015-04-21 641 ret = regmap_read(dev->regmap, 0x02, &uitmp); c5f51b15829d5e Antti Palosaari 2014-02-10 642 if (ret) f8b9b871f832a6 Antti Palosaari 2015-04-21 643 goto err_kfree; ed85adaad62472 Antti Palosaari 2012-09-01 644 f8b9b871f832a6 Antti Palosaari 2015-04-21 645 dev_dbg(&client->dev, "chip id=%02x\n", uitmp); ed85adaad62472 Antti Palosaari 2012-09-01 646 f8b9b871f832a6 Antti Palosaari 2015-04-21 647 if (uitmp != 0x40) { 28fd31f82dccfc Antti Palosaari 2013-10-15 648 ret = -ENODEV; f8b9b871f832a6 Antti Palosaari 2015-04-21 649 goto err_kfree; 28fd31f82dccfc Antti Palosaari 2013-10-15 650 } ed85adaad62472 Antti Palosaari 2012-09-01 651 ed85adaad62472 Antti Palosaari 2012-09-01 652 /* put sleep as chip seems to be in normal mode by default */ f8b9b871f832a6 Antti Palosaari 2015-04-21 653 ret = regmap_write(dev->regmap, 0x00, 0x00); c5f51b15829d5e Antti Palosaari 2014-02-10 654 if (ret) f8b9b871f832a6 Antti Palosaari 2015-04-21 655 goto err_kfree; ed85adaad62472 Antti Palosaari 2012-09-01 656 320c63870941ef Antti Palosaari 2014-03-16 657 #if IS_ENABLED(CONFIG_VIDEO_V4L2) adaa616ffb697f Antti Palosaari 2014-01-26 658 /* Register controls */ f8b9b871f832a6 Antti Palosaari 2015-04-21 @659 v4l2_ctrl_handler_init(&dev->hdl, 9); f8b9b871f832a6 Antti Palosaari 2015-04-21 @660 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 661 V4L2_CID_RF_TUNER_BANDWIDTH_AUTO, 0, 1, 1, 1); f8b9b871f832a6 Antti Palosaari 2015-04-21 662 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 663 V4L2_CID_RF_TUNER_BANDWIDTH, 4300000, 11000000, 100000, 4300000); f8b9b871f832a6 Antti Palosaari 2015-04-21 @664 v4l2_ctrl_auto_cluster(2, &dev->bandwidth_auto, 0, false); f8b9b871f832a6 Antti Palosaari 2015-04-21 665 dev->lna_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 666 V4L2_CID_RF_TUNER_LNA_GAIN_AUTO, 0, 1, 1, 1); f8b9b871f832a6 Antti Palosaari 2015-04-21 @667 dev->lna_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 668 V4L2_CID_RF_TUNER_LNA_GAIN, 0, 15, 1, 10); f8b9b871f832a6 Antti Palosaari 2015-04-21 @669 v4l2_ctrl_auto_cluster(2, &dev->lna_gain_auto, 0, false); f8b9b871f832a6 Antti Palosaari 2015-04-21 670 dev->mixer_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 671 V4L2_CID_RF_TUNER_MIXER_GAIN_AUTO, 0, 1, 1, 1); f8b9b871f832a6 Antti Palosaari 2015-04-21 672 dev->mixer_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 673 V4L2_CID_RF_TUNER_MIXER_GAIN, 0, 1, 1, 1); f8b9b871f832a6 Antti Palosaari 2015-04-21 674 v4l2_ctrl_auto_cluster(2, &dev->mixer_gain_auto, 0, false); f8b9b871f832a6 Antti Palosaari 2015-04-21 675 dev->if_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 676 V4L2_CID_RF_TUNER_IF_GAIN_AUTO, 0, 1, 1, 1); f8b9b871f832a6 Antti Palosaari 2015-04-21 677 dev->if_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, adaa616ffb697f Antti Palosaari 2014-01-26 678 V4L2_CID_RF_TUNER_IF_GAIN, 0, 54, 1, 0); f8b9b871f832a6 Antti Palosaari 2015-04-21 679 v4l2_ctrl_auto_cluster(2, &dev->if_gain_auto, 0, false); f8b9b871f832a6 Antti Palosaari 2015-04-21 680 dev->pll_lock = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, ecfb7ca3c8c48e Antti Palosaari 2014-02-07 681 V4L2_CID_RF_TUNER_PLL_LOCK, 0, 1, 1, 0); f8b9b871f832a6 Antti Palosaari 2015-04-21 682 if (dev->hdl.error) { f8b9b871f832a6 Antti Palosaari 2015-04-21 683 ret = dev->hdl.error; f8b9b871f832a6 Antti Palosaari 2015-04-21 684 dev_err(&client->dev, "Could not initialize controls\n"); f8b9b871f832a6 Antti Palosaari 2015-04-21 @685 v4l2_ctrl_handler_free(&dev->hdl); f8b9b871f832a6 Antti Palosaari 2015-04-21 686 goto err_kfree; adaa616ffb697f Antti Palosaari 2014-01-26 687 } adaa616ffb697f Antti Palosaari 2014-01-26 688 f8b9b871f832a6 Antti Palosaari 2015-04-21 689 dev->sd.ctrl_handler = &dev->hdl; c7861bb0486695 Antti Palosaari 2015-05-12 690 dev->f_frequency = bands[0].rangelow; c7861bb0486695 Antti Palosaari 2015-05-12 691 dev->f_bandwidth = dev->bandwidth->val; c7861bb0486695 Antti Palosaari 2015-05-12 @692 v4l2_i2c_subdev_init(&dev->sd, client, &e4000_subdev_ops); 320c63870941ef Antti Palosaari 2014-03-16 693 #endif f8b9b871f832a6 Antti Palosaari 2015-04-21 694 fe->tuner_priv = dev; c7861bb0486695 Antti Palosaari 2015-05-12 695 memcpy(&fe->ops.tuner_ops, &e4000_dvb_tuner_ops, c7861bb0486695 Antti Palosaari 2015-05-12 696 sizeof(fe->ops.tuner_ops)); f8b9b871f832a6 Antti Palosaari 2015-04-21 697 v4l2_set_subdevdata(&dev->sd, client); f8b9b871f832a6 Antti Palosaari 2015-04-21 698 i2c_set_clientdata(client, &dev->sd); 36f647bad3d355 Antti Palosaari 2012-09-22 699 f8b9b871f832a6 Antti Palosaari 2015-04-21 700 dev_info(&client->dev, "Elonics E4000 successfully identified\n"); 28fd31f82dccfc Antti Palosaari 2013-10-15 701 return 0; f8b9b871f832a6 Antti Palosaari 2015-04-21 702 err_kfree: f8b9b871f832a6 Antti Palosaari 2015-04-21 703 kfree(dev); ed85adaad62472 Antti Palosaari 2012-09-01 704 err: 13bd82d18ec29c Antti Palosaari 2014-08-24 705 dev_dbg(&client->dev, "failed=%d\n", ret); 28fd31f82dccfc Antti Palosaari 2013-10-15 706 return ret; ed85adaad62472 Antti Palosaari 2012-09-01 707 } 28fd31f82dccfc Antti Palosaari 2013-10-15 708 28fd31f82dccfc Antti Palosaari 2013-10-15 709 static int e4000_remove(struct i2c_client *client) 28fd31f82dccfc Antti Palosaari 2013-10-15 710 { adaa616ffb697f Antti Palosaari 2014-01-26 711 struct v4l2_subdev *sd = i2c_get_clientdata(client); f8b9b871f832a6 Antti Palosaari 2015-04-21 712 struct e4000_dev *dev = container_of(sd, struct e4000_dev, sd); 28fd31f82dccfc Antti Palosaari 2013-10-15 713 13bd82d18ec29c Antti Palosaari 2014-08-24 714 dev_dbg(&client->dev, "\n"); 1c73fc6bb54285 Antti Palosaari 2014-02-08 715 320c63870941ef Antti Palosaari 2014-03-16 716 #if IS_ENABLED(CONFIG_VIDEO_V4L2) f8b9b871f832a6 Antti Palosaari 2015-04-21 @717 v4l2_ctrl_handler_free(&dev->hdl); 320c63870941ef Antti Palosaari 2014-03-16 718 #endif f8b9b871f832a6 Antti Palosaari 2015-04-21 719 kfree(dev); 28fd31f82dccfc Antti Palosaari 2013-10-15 720 28fd31f82dccfc Antti Palosaari 2013-10-15 721 return 0; 28fd31f82dccfc Antti Palosaari 2013-10-15 722 } 28fd31f82dccfc Antti Palosaari 2013-10-15 723 :::::: The code at line 717 was first introduced by commit :::::: f8b9b871f832a618f71be17fe7d90034e0862862 [media] e4000: various small changes :::::: TO: Antti Palosaari <crope@xxxxxx> :::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip