tree:
https://github.com/alexandrebelloni/linux rtc/pcf8523
head: 3c217681353e4be3e29506001790a6566fada426
commit: b55c5f88ffa528792b6275b0bc3775d2b8a7739e [2/8] rtc: pcf8523: switch to
devm_rtc_allocate_device
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/alexandrebelloni/linux/commit/b55c5f88ffa528792b6275b0...
git remote add alexandrebelloni
https://github.com/alexandrebelloni/linux
git fetch --no-tags alexandrebelloni rtc/pcf8523
git checkout b55c5f88ffa528792b6275b0bc3775d2b8a7739e
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the alexandrebelloni/rtc/pcf8523 HEAD 3c217681353e4be3e29506001790a6566fada426
builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/rtc/rtc-pcf8523.c: In function 'pcf8523_probe':
> drivers/rtc/rtc-pcf8523.c:365:9: error: implicit declaration of
function 'devm_rtc_register_device'; did you mean 'rtc_register_device'?
[-Werror=implicit-function-declaration]
365 | return
devm_rtc_register_device(rtc);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| rtc_register_device
cc1: some warnings being treated as errors
vim +365 drivers/rtc/rtc-pcf8523.c
340
341 static int pcf8523_probe(struct i2c_client *client,
342 const struct i2c_device_id *id)
343 {
344 struct rtc_device *rtc;
345 int err;
346
347 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
348 return -ENODEV;
349
350 err = pcf8523_load_capacitance(client);
351 if (err < 0)
352 dev_warn(&client->dev, "failed to set xtal load capacitance:
%d",
353 err);
354
355 err = pcf8523_set_pm(client, 0);
356 if (err < 0)
357 return err;
358
359 rtc = devm_rtc_allocate_device(&client->dev);
360 if (IS_ERR(rtc))
361 return PTR_ERR(rtc);
362
363 rtc->ops = &pcf8523_rtc_ops;
364
365 return devm_rtc_register_device(rtc);
366 }
367
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org