tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
head: 7562e54bbd90ed24cb68f52b69b6654b18b13697
commit: 345b89453ddac6dce70376cb88d7230fdc6ee510 [2/6] rtc: rtc-ds1307: enable support for mcp794xx as a wakeup source without IRQ
config: i386-randconfig-x078-05301437 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 345b89453ddac6dce70376cb88d7230fdc6ee510
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/linux/ioport.h:12:0,
from include/linux/acpi.h:25,
from drivers//rtc/rtc-ds1307.c:14:
drivers//rtc/rtc-ds1307.c: In function 'ds1307_probe':
drivers//rtc/rtc-ds1307.c:1410:29: error: 'struct ds1307' has no member named 'client'
if (chip->alarm && (ds1307->client->irq > 0 ||
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~quoted
drivers//rtc/rtc-ds1307.c:1410:3: note: in expansion of macro 'if'
if (chip->alarm && (ds1307->client->irq > 0 ||
^~
drivers//rtc/rtc-ds1307.c:1410:29: error: 'struct ds1307' has no member named 'client'
if (chip->alarm && (ds1307->client->irq > 0 ||
^
include/linux/compiler.h:160:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~quoted
drivers//rtc/rtc-ds1307.c:1410:3: note: in expansion of macro 'if'
if (chip->alarm && (ds1307->client->irq > 0 ||
^~
drivers//rtc/rtc-ds1307.c:1410:29: error: 'struct ds1307' has no member named 'client'
if (chip->alarm && (ds1307->client->irq > 0 ||
^
include/linux/compiler.h:171:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~quoted
drivers//rtc/rtc-ds1307.c:1410:3: note: in expansion of macro 'if'
if (chip->alarm && (ds1307->client->irq > 0 ||
^~
vim +/if +1410 drivers//rtc/rtc-ds1307.c
1394 /* correct hour */
1395 hour = bcd2bin(ds1307->regs[DS1307_REG_HOUR]);
1396 if (hour == 12)
1397 hour = 0;
1398 if (ds1307->regs[DS1307_REG_HOUR] & DS1307_BIT_PM)
1399 hour += 12;
1400
1401 regmap_write(ds1307->regmap,
1402 DS1307_REG_HOUR << 4 | 0x08, hour);
1403 }
1404 break;
1405 case ds_1388:
1406 ds1307->offset = 1; /* Seconds starts at 1 */
1407 break;
1408 case mcp794xx:
1409 rtc_ops = &mcp794xx_rtc_ops;1410 if (chip->alarm && (ds1307->client->irq > 0 ||
1411 ds1307_can_wakeup_device)) {
1412 irq_handler = mcp794xx_irq;
1413 want_irq = true;
1414 }
1415 break;
1416 default:
1417 break;
1418 }
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.