* [alexandrebelloni:rtc-misc 18/32] drivers/rtc/rtc-rv8803.c:418:3: error: a label can only be part of a statement and a declaration is not a statement
@ 2019-12-13 19:50 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-12-13 19:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2586 bytes --]
tree: https://github.com/alexandrebelloni/linux rtc-misc
head: 4463ad39abaf020da8c6ca0c75393efbfe5a57fa
commit: b8941bec0012beb7e72add48cf315032b63d7e9f [18/32] WIP
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.5.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 b8941bec0012beb7e72add48cf315032b63d7e9f
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/rtc/rtc-rv8803.c: In function 'rv8803_ioctl':
>> drivers/rtc/rtc-rv8803.c:418:3: error: a label can only be part of a statement and a declaration is not a statement
unsigned int long vl = 0;
^~~~~~~~
vim +418 drivers/rtc/rtc-rv8803.c
409
410 static int rv8803_ioctl(struct device *dev, unsigned int cmd, unsigned long arg)
411 {
412 struct i2c_client *client = to_i2c_client(dev);
413 struct rv8803_data *rv8803 = dev_get_drvdata(dev);
414 int flags, ret = 0;
415
416 switch (cmd) {
417 case RTC_VL_READ:
> 418 unsigned int long vl = 0;
419
420 flags = rv8803_read_reg(client, RV8803_FLAG);
421 if (flags < 0)
422 return flags;
423
424 if (flags & RV8803_FLAG_V1F) {
425 dev_warn(&client->dev, "Voltage low, temperature compensation stopped.\n");
426 vl = RTC_VL_ACCURACY_LOW;
427 }
428
429 if (flags & RV8803_FLAG_V2F)
430 vl |= RTC_VL_DATA_INVALID;
431
432 if (copy_to_user((void __user *)arg, &vl, sizeof(unsigned int)))
433 return -EFAULT;
434
435 return 0;
436
437 case RTC_VL_CLR:
438 mutex_lock(&rv8803->flags_lock);
439 flags = rv8803_read_reg(client, RV8803_FLAG);
440 if (flags < 0) {
441 mutex_unlock(&rv8803->flags_lock);
442 return flags;
443 }
444
445 flags &= ~RV8803_FLAG_V1F;
446 ret = rv8803_write_reg(client, RV8803_FLAG, flags);
447 mutex_unlock(&rv8803->flags_lock);
448 if (ret)
449 return ret;
450
451 return 0;
452
453 default:
454 return -ENOIOCTLCMD;
455 }
456 }
457
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 52811 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-13 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-13 19:50 [alexandrebelloni:rtc-misc 18/32] drivers/rtc/rtc-rv8803.c:418:3: error: a label can only be part of a statement and a declaration is not a statement kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.