tree:
https://github.com/alexandrebelloni/linux rtc-misc
head: c58fe9972b0c87a997f1b8fcc390f4f658309e0d
commit: 69c8c14e9ae374d6c9d5cbe139ce1dd9dbba70c6 [64/68] rtc: 88pm860x: stop calling
unused callback
config: mips-randconfig-a001-20200313 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.2.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 69c8c14e9ae374d6c9d5cbe139ce1dd9dbba70c6
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers//rtc/rtc-88pm860x.c: In function 'pm860x_rtc_probe':
> drivers//rtc/rtc-88pm860x.c:309:34: error: expected expression
before 'do'
309 | #define pm860x_rtc_dt_init(x, y) do {} while(0)
| ^~
drivers//rtc/rtc-88pm860x.c:369:6: note: in expansion of macro
'pm860x_rtc_dt_init'
369 | if (pm860x_rtc_dt_init(pdev, info)) {
| ^~~~~~~~~~~~~~~~~~
vim +/do +309 drivers//rtc/rtc-88pm860x.c
288
289 #ifdef CONFIG_OF
290 static int pm860x_rtc_dt_init(struct platform_device *pdev,
291 struct pm860x_rtc_info *info)
292 {
293 struct device_node *np = pdev->dev.parent->of_node;
294 int ret;
295 if (!np)
296 return -ENODEV;
297 np = of_get_child_by_name(np, "rtc");
298 if (!np) {
299 dev_err(&pdev->dev, "failed to find rtc node\n");
300 return -ENODEV;
301 }
302 ret = of_property_read_u32(np, "marvell,88pm860x-vrtc",
&info->vrtc);
303 if (ret)
304 info->vrtc = 0;
305 of_node_put(np);
306 return 0;
307 }
308 #else
309 #define pm860x_rtc_dt_init(x, y) do {} while(0)
310 #endif
311
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org