lkml.org 
[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/regulator/da9063-regulator.c:529:3: warning: initialized field overwritten
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6
commit: 99f75ce6661993b8ba7ae0c94e95cb25454fdf1e regulator: da9063: fix suspend
date: 2 months ago
config: i386-randconfig-r032-20200528 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
git checkout 99f75ce6661993b8ba7ae0c94e95cb25454fdf1e
# 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: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/regulator/da9063-regulator.c:529:3: warning: initialized field overwritten [-Woverride-init]
.suspend = BFIELD(DA9063_REG_LDO9_CONT, DA9063_VLDO9_SEL),
^
drivers/regulator/da9063-regulator.c:529:3: warning: (near initialization for 'da9063_regulator_info[11].suspend') [-Woverride-init]

vim +529 drivers/regulator/da9063-regulator.c

69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 462
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 463 /* Info of regulators for DA9063 */
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 464 static const struct da9063_regulator_info da9063_regulator_info[] = {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 465 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 466 DA9063_BUCK(DA9063, BCORE1, 300, 10, 1570,
5b1f537e49830321 Axel Lin 2019-03-04 467 da9063_buck_a_limits,
5b1f537e49830321 Axel Lin 2019-03-04 468 DA9063_REG_BUCK_ILIM_C, DA9063_BCORE1_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 469 DA9063_BUCK_COMMON_FIELDS(BCORE1),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 470 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 471 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 472 DA9063_BUCK(DA9063, BCORE2, 300, 10, 1570,
5b1f537e49830321 Axel Lin 2019-03-04 473 da9063_buck_a_limits,
5b1f537e49830321 Axel Lin 2019-03-04 474 DA9063_REG_BUCK_ILIM_C, DA9063_BCORE2_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 475 DA9063_BUCK_COMMON_FIELDS(BCORE2),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 476 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 477 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 478 DA9063_BUCK(DA9063, BPRO, 530, 10, 1800,
5b1f537e49830321 Axel Lin 2019-03-04 479 da9063_buck_a_limits,
5b1f537e49830321 Axel Lin 2019-03-04 480 DA9063_REG_BUCK_ILIM_B, DA9063_BPRO_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 481 DA9063_BUCK_COMMON_FIELDS(BPRO),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 482 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 483 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 484 DA9063_BUCK(DA9063, BMEM, 800, 20, 3340,
5b1f537e49830321 Axel Lin 2019-03-04 485 da9063_buck_b_limits,
5b1f537e49830321 Axel Lin 2019-03-04 486 DA9063_REG_BUCK_ILIM_A, DA9063_BMEM_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 487 DA9063_BUCK_COMMON_FIELDS(BMEM),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 488 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 489 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 490 DA9063_BUCK(DA9063, BIO, 800, 20, 3340,
5b1f537e49830321 Axel Lin 2019-03-04 491 da9063_buck_b_limits,
5b1f537e49830321 Axel Lin 2019-03-04 492 DA9063_REG_BUCK_ILIM_A, DA9063_BIO_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 493 DA9063_BUCK_COMMON_FIELDS(BIO),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 494 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 495 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 496 DA9063_BUCK(DA9063, BPERI, 800, 20, 3340,
5b1f537e49830321 Axel Lin 2019-03-04 497 da9063_buck_b_limits,
5b1f537e49830321 Axel Lin 2019-03-04 498 DA9063_REG_BUCK_ILIM_B, DA9063_BPERI_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 499 DA9063_BUCK_COMMON_FIELDS(BPERI),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 500 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 501 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 502 DA9063_BUCK(DA9063, BCORES_MERGED, 300, 10, 1570,
5b1f537e49830321 Axel Lin 2019-03-04 503 da9063_bcores_merged_limits,
5b1f537e49830321 Axel Lin 2019-03-04 504 DA9063_REG_BUCK_ILIM_C, DA9063_BCORE1_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 505 /* BCORES_MERGED uses the same register fields as BCORE1 */
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 506 DA9063_BUCK_COMMON_FIELDS(BCORE1),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 507 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 508 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 509 DA9063_BUCK(DA9063, BMEM_BIO_MERGED, 800, 20, 3340,
5b1f537e49830321 Axel Lin 2019-03-04 510 da9063_bmem_bio_merged_limits,
5b1f537e49830321 Axel Lin 2019-03-04 511 DA9063_REG_BUCK_ILIM_A, DA9063_BMEM_ILIM_MASK),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 512 /* BMEM_BIO_MERGED uses the same register fields as BMEM */
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 513 DA9063_BUCK_COMMON_FIELDS(BMEM),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 514 },
1c892e38ce59c829 Marek Vasut 2018-06-11 515 {
1c892e38ce59c829 Marek Vasut 2018-06-11 516 DA9063_LDO(DA9063, LDO3, 900, 20, 3440),
1c892e38ce59c829 Marek Vasut 2018-06-11 517 .oc_event = BFIELD(DA9063_REG_STATUS_D, DA9063_LDO3_LIM),
1c892e38ce59c829 Marek Vasut 2018-06-11 518 },
1c892e38ce59c829 Marek Vasut 2018-06-11 519 {
1c892e38ce59c829 Marek Vasut 2018-06-11 520 DA9063_LDO(DA9063, LDO7, 900, 50, 3600),
1c892e38ce59c829 Marek Vasut 2018-06-11 521 .oc_event = BFIELD(DA9063_REG_STATUS_D, DA9063_LDO7_LIM),
1c892e38ce59c829 Marek Vasut 2018-06-11 522 },
1c892e38ce59c829 Marek Vasut 2018-06-11 523 {
1c892e38ce59c829 Marek Vasut 2018-06-11 524 DA9063_LDO(DA9063, LDO8, 900, 50, 3600),
1c892e38ce59c829 Marek Vasut 2018-06-11 525 .oc_event = BFIELD(DA9063_REG_STATUS_D, DA9063_LDO8_LIM),
1c892e38ce59c829 Marek Vasut 2018-06-11 526 },
1c892e38ce59c829 Marek Vasut 2018-06-11 527 {
1c892e38ce59c829 Marek Vasut 2018-06-11 528 DA9063_LDO(DA9063, LDO9, 950, 50, 3600),
1c892e38ce59c829 Marek Vasut 2018-06-11 @529 .suspend = BFIELD(DA9063_REG_LDO9_CONT, DA9063_VLDO9_SEL),
1c892e38ce59c829 Marek Vasut 2018-06-11 530 },
1c892e38ce59c829 Marek Vasut 2018-06-11 531 {
1c892e38ce59c829 Marek Vasut 2018-06-11 532 DA9063_LDO(DA9063, LDO11, 900, 50, 3600),
1c892e38ce59c829 Marek Vasut 2018-06-11 533 .oc_event = BFIELD(DA9063_REG_STATUS_D, DA9063_LDO11_LIM),
1c892e38ce59c829 Marek Vasut 2018-06-11 534 },
1c892e38ce59c829 Marek Vasut 2018-06-11 535
1c892e38ce59c829 Marek Vasut 2018-06-11 536 /* The following LDOs are present only on DA9063, not on DA9063L */
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 537 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 538 DA9063_LDO(DA9063, LDO1, 600, 20, 1860),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 539 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 540 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 541 DA9063_LDO(DA9063, LDO2, 600, 20, 1860),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 542 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 543 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 544 DA9063_LDO(DA9063, LDO4, 900, 20, 3440),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 545 .oc_event = BFIELD(DA9063_REG_STATUS_D, DA9063_LDO4_LIM),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 546 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 547 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 548 DA9063_LDO(DA9063, LDO5, 900, 50, 3600),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 549 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 550 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 551 DA9063_LDO(DA9063, LDO6, 900, 50, 3600),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 552 },
1c892e38ce59c829 Marek Vasut 2018-06-11 553
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 554 {
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 555 DA9063_LDO(DA9063, LDO10, 900, 50, 3600),
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 556 },
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 557 };
69ca3e58d17854f8 Krystian Garbaciak 2013-07-29 558

:::::: The code at line 529 was first introduced by commit
:::::: 1c892e38ce59c82998e5444c8516ccb23a4e426f regulator: da9063: Handle less LDOs on DA9063L

:::::: TO: Marek Vasut <marek.vasut@gmail.com>
:::::: CC: Lee Jones <lee.jones@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-05-28 01:27    [W:0.031 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site