Re: [PATCH 1/2] drm: bridge: sil902x

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

 




Hi Boris,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.4-rc8 next-20160106]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Boris-Brezillon/drm-bridge-sil902x/20160106-192921
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/bridge/sil902x.c: In function 'sil902x_probe':
>> drivers/gpu/drm/bridge/sil902x.c:401:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
      dev_err(dev, "Failed to retrieve/request reset gpio: %d\n",
                   ^
   In file included from drivers/gpu/drm/bridge/sil902x.c:26:0:
   drivers/gpu/drm/bridge/sil902x.c: At top level:
>> drivers/gpu/drm/bridge/sil902x.c:476:26: error: 'sil9022_id' undeclared here (not in a function)
    MODULE_DEVICE_TABLE(i2c, sil9022_id);
                             ^
   include/linux/module.h:223:21: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                        ^
>> include/linux/module.h:223:27: error: '__mod_i2c__sil9022_id_device_table' aliased to undefined symbol 'sil9022_id'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                              ^
>> drivers/gpu/drm/bridge/sil902x.c:476:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(i2c, sil9022_id);
    ^

vim +/sil9022_id +476 drivers/gpu/drm/bridge/sil902x.c

   395		sil902x->regmap = devm_regmap_init_i2c(client, &sil902x_regmap_config);
   396		if (IS_ERR(sil902x->regmap))
   397			return PTR_ERR(sil902x->regmap);
   398	
   399		sil902x->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
   400		if (IS_ERR(sil902x->reset_gpio)) {
 > 401			dev_err(dev, "Failed to retrieve/request reset gpio: %d\n",
   402				PTR_ERR(sil902x->reset_gpio));
   403			return PTR_ERR(sil902x->reset_gpio);
   404		}
   405	
   406		sil902x_reset(sil902x);
   407	
   408		ret = regmap_write(sil902x->regmap, SIL902X_REG_TPI_RQB, 0x0);
   409		if (ret)
   410			return ret;
   411	
   412		ret = regmap_bulk_read(sil902x->regmap, SIL902X_REG_CHIPID(0),
   413				       &chipid, 4);
   414		if (ret) {
   415			dev_err(dev, "regmap_read failed %d\n", ret);
   416			return ret;
   417		}
   418	
   419		if (chipid[0] != 0xb0) {
   420			dev_err(dev, "Invalid chipid: %02x (expecting 0xb0)\n",
   421				chipid[0]);
   422			return -EINVAL;
   423		}
   424	
   425		/* Clear all pending interrupts */
   426		regmap_read(sil902x->regmap, SI902X_INT_STATUS, &status);
   427		regmap_write(sil902x->regmap, SI902X_INT_STATUS, status);
   428	
   429		if (client->irq > 0) {
   430			regmap_write(sil902x->regmap, SI902X_INT_ENABLE,
   431				     SI902X_HOTPLUG_EVENT);
   432	
   433			ret = devm_request_threaded_irq(dev, client->irq, NULL,
   434							sil902x_interrupt,
   435							IRQF_ONESHOT, dev_name(dev),
   436							sil902x);
   437			if (ret)
   438				return ret;
   439		}
   440	
   441		sil902x->bridge.funcs = &sil902x_bridge_funcs;
   442		sil902x->bridge.of_node = dev->of_node;
   443		ret = drm_bridge_add(&sil902x->bridge);
   444		if (ret) {
   445			dev_err(dev, "Failed to add drm_bridge\n");
   446			return ret;
   447		}
   448	
   449		i2c_set_clientdata(client, sil902x);
   450	
   451		return 0;
   452	}
   453	
   454	static int sil902x_remove(struct i2c_client *client)
   455	
   456	{
   457		struct sil902x *sil902x = i2c_get_clientdata(client);
   458	
   459		drm_bridge_remove(&sil902x->bridge);
   460	
   461		return 0;
   462	}
   463	
   464	#ifdef CONFIG_OF
   465	static const struct of_device_id sil902x_dt_ids[] = {
   466		{ .compatible = "sil,sil9022", },
   467		{ }
   468	};
   469	MODULE_DEVICE_TABLE(of, sil902x_dt_ids);
   470	#endif
   471	
   472	static const struct i2c_device_id sil902x_i2c_ids[] = {
   473		{ "sil9022", 0 },
   474		{ },
   475	};
 > 476	MODULE_DEVICE_TABLE(i2c, sil9022_id);
   477	
   478	static struct i2c_driver sil902x_driver = {
   479		.probe = sil902x_probe,

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

Attachment: .config.gz
Description: Binary data


[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