Re: [PATCH v8 3/9] i2c: core: call of_i2c_setup_smbus_alert in i2c_register_adapter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi Phil,

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.13-rc1]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Phil-Reid/i2c-i2c-smbus-Use-threaded-irq-for-smbalert/20170719-095934
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: powerpc-ppc6xx_defconfig (attached as .config)
compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers/i2c/i2c-core-base.o: In function `i2c_register_adapter':
>> drivers/i2c/i2c-core-base.c:1262: undefined reference to `of_i2c_setup_smbus_alert'

vim +1262 drivers/i2c/i2c-core-base.c

  1213	
  1214	static int i2c_register_adapter(struct i2c_adapter *adap)
  1215	{
  1216		int res = -EINVAL;
  1217	
  1218		/* Can't register until after driver model init */
  1219		if (WARN_ON(!is_registered)) {
  1220			res = -EAGAIN;
  1221			goto out_list;
  1222		}
  1223	
  1224		/* Sanity checks */
  1225		if (WARN(!adap->name[0], "i2c adapter has no name"))
  1226			goto out_list;
  1227	
  1228		if (!adap->algo) {
  1229			pr_err("adapter '%s': no algo supplied!\n", adap->name);
  1230			goto out_list;
  1231		}
  1232	
  1233		if (!adap->lock_ops)
  1234			adap->lock_ops = &i2c_adapter_lock_ops;
  1235	
  1236		rt_mutex_init(&adap->bus_lock);
  1237		rt_mutex_init(&adap->mux_lock);
  1238		mutex_init(&adap->userspace_clients_lock);
  1239		INIT_LIST_HEAD(&adap->userspace_clients);
  1240	
  1241		/* Set default timeout to 1 second if not already set */
  1242		if (adap->timeout == 0)
  1243			adap->timeout = HZ;
  1244	
  1245		/* register soft irqs for Host Notify */
  1246		res = i2c_setup_host_notify_irq_domain(adap);
  1247		if (res) {
  1248			pr_err("adapter '%s': can't create Host Notify IRQs (%d)\n",
  1249			       adap->name, res);
  1250			goto out_list;
  1251		}
  1252	
  1253		dev_set_name(&adap->dev, "i2c-%d", adap->nr);
  1254		adap->dev.bus = &i2c_bus_type;
  1255		adap->dev.type = &i2c_adapter_type;
  1256		res = device_register(&adap->dev);
  1257		if (res) {
  1258			pr_err("adapter '%s': can't register device (%d)\n", adap->name, res);
  1259			goto out_list;
  1260		}
  1261	
> 1262		res = of_i2c_setup_smbus_alert(adap);
  1263		if (res)
  1264			goto out_reg;
  1265	
  1266		dev_dbg(&adap->dev, "adapter [%s] registered\n", adap->name);
  1267	
  1268		pm_runtime_no_callbacks(&adap->dev);
  1269		pm_suspend_ignore_children(&adap->dev, true);
  1270		pm_runtime_enable(&adap->dev);
  1271	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux