tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 459c73db4069c27c1d4a0e20d055b837396364b8 commit: ad6d474d82dfb346573146d1bb0d818a720314fd [15112/15174] rtc: ds1307: Convert to i2c's .probe_new() config: i386-randconfig-a003 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ad6d474d82dfb346573146d1bb0d818a720314fd git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout ad6d474d82dfb346573146d1bb0d818a720314fd # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the linux-next/master HEAD 459c73db4069c27c1d4a0e20d055b837396364b8 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/rtc/rtc-ds1307.c: In function 'ds1307_probe': >> drivers/rtc/rtc-ds1307.c:1717:42: error: implicit declaration of function 'i2c_client_get_device_id'; did you mean 'i2c_get_device_id'? [-Werror=implicit-function-declaration] 1717 | const struct i2c_device_id *id = i2c_client_get_device_id(client); | ^~~~~~~~~~~~~~~~~~~~~~~~ | i2c_get_device_id drivers/rtc/rtc-ds1307.c:1717:42: warning: initialization of 'const struct i2c_device_id *' from 'int' makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors vim +1717 drivers/rtc/rtc-ds1307.c 1714 1715 static int ds1307_probe(struct i2c_client *client) 1716 { > 1717 const struct i2c_device_id *id = i2c_client_get_device_id(client); 1718 struct ds1307 *ds1307; 1719 const void *match; 1720 int err = -ENODEV; 1721 int tmp; 1722 const struct chip_desc *chip; 1723 bool want_irq; 1724 bool ds1307_can_wakeup_device = false; 1725 unsigned char regs[8]; 1726 struct ds1307_platform_data *pdata = dev_get_platdata(&client->dev); 1727 u8 trickle_charger_setup = 0; 1728 1729 ds1307 = devm_kzalloc(&client->dev, sizeof(struct ds1307), GFP_KERNEL); 1730 if (!ds1307) 1731 return -ENOMEM; 1732 1733 dev_set_drvdata(&client->dev, ds1307); 1734 ds1307->dev = &client->dev; 1735 ds1307->name = client->name; 1736 1737 ds1307->regmap = devm_regmap_init_i2c(client, ®map_config); 1738 if (IS_ERR(ds1307->regmap)) { 1739 dev_err(ds1307->dev, "regmap allocation failed\n"); 1740 return PTR_ERR(ds1307->regmap); 1741 } 1742 1743 i2c_set_clientdata(client, ds1307); 1744 1745 match = device_get_match_data(&client->dev); 1746 if (match) { 1747 ds1307->type = (enum ds_type)match; 1748 chip = &chips[ds1307->type]; 1749 } else if (id) { 1750 chip = &chips[id->driver_data]; 1751 ds1307->type = id->driver_data; 1752 } else { 1753 return -ENODEV; 1754 } 1755 1756 want_irq = client->irq > 0 && chip->alarm; 1757 1758 if (!pdata) 1759 trickle_charger_setup = ds1307_trickle_init(ds1307, chip); 1760 else if (pdata->trickle_charger_setup) 1761 trickle_charger_setup = pdata->trickle_charger_setup; 1762 1763 if (trickle_charger_setup && chip->trickle_charger_reg) { 1764 dev_dbg(ds1307->dev, 1765 "writing trickle charger info 0x%x to 0x%x\n", 1766 trickle_charger_setup, chip->trickle_charger_reg); 1767 regmap_write(ds1307->regmap, chip->trickle_charger_reg, 1768 trickle_charger_setup); 1769 } 1770 -- 0-DAY CI Kernel Test Service https://01.org/lkp