mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
To: Lee Jones <lee.jones@linaro.org>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
	"broonie@kernel.org" <broonie@kernel.org>
Cc: "linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Support Opensource <Support.Opensource@diasemi.com>
Subject: RE: [RESEND 09/10] regulator: da9063-regulator: Fix .suspend 'initialized field overwritten' warnings
Date: Fri, 26 Jun 2020 08:49:10 +0000	[thread overview]
Message-ID: <AM6PR10MB2263AAC42CEE740F885526FA80930@AM6PR10MB2263.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20200625191708.4014533-10-lee.jones@linaro.org>

On 25 June 2020 20:17, Lee Jones wrote:

> Looks as though 99f75ce666199 ("regulator: da9063: fix suspend") failed
> to clean-up all of the existing .suspend variable initialisations.
> This has led to some 'initilized field overwritten' issues now present
> in W=1 builds.

You probably were not on the CC but I believe the following patch has already
resolved this issue, and has been pulled by Mark:

 [PATCH] regulator: da9063: fix LDO9 suspend and warning.
 
 Repo: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git/
 Branch: for-next
 Commit: d7442ba13d62de9afc4e57344a676f9f4623dcaa

> 
> This patch squashes the following build warnings:
> 
>  In file included from drivers/regulator/da9063-regulator.c:17:
>  include/linux/regmap.h:1124:37: warning: initialized field overwritten [-
> Woverride-init]
>  1124 | #define REG_FIELD(_reg, _lsb, _msb) { | ^
>  drivers/regulator/da9063-regulator.c:27:2: note: in expansion of macro
> ‘REG_FIELD’
>  27 | REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, | ^~~~~~~~~
>  drivers/regulator/da9063-regulator.c:515:14: note: in expansion of macro
> ‘BFIELD’
>  515 | .suspend = BFIELD(DA9063_REG_LDO9_CONT, DA9063_VLDO9_SEL),
>  | ^~~~~~
>  include/linux/regmap.h:1124:37: note: (near initialization for
> ‘da9063_regulator_info[11].suspend’)
>  1124 | #define REG_FIELD(_reg, _lsb, _msb) { | ^
>  drivers/regulator/da9063-regulator.c:27:2: note: in expansion of macro
> ‘REG_FIELD’
>  27 | REG_FIELD(_reg, __builtin_ffs((int)_mask) - 1, | ^~~~~~~~~
>  drivers/regulator/da9063-regulator.c:515:14: note: in expansion of macro
> ‘BFIELD’
>  515 | .suspend = BFIELD(DA9063_REG_LDO9_CONT, DA9063_VLDO9_SEL),
>  | ^~~~~~
> 
> Cc: Krystian Garbaciak <krystian.garbaciak@diasemi.com>
> Cc: Support Opensource <support.opensource@diasemi.com>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
>  drivers/regulator/da9063-regulator.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-
> regulator.c
> index e1d6c8f6d40bb..fe65b5acaf280 100644
> --- a/drivers/regulator/da9063-regulator.c
> +++ b/drivers/regulator/da9063-regulator.c
> @@ -512,7 +512,6 @@ static const struct da9063_regulator_info
> da9063_regulator_info[] = {
>  	},
>  	{
>  		DA9063_LDO(DA9063, LDO9, 950, 50, 3600),
> -		.suspend = BFIELD(DA9063_REG_LDO9_CONT,
> DA9063_VLDO9_SEL),
>  	},
>  	{
>  		DA9063_LDO(DA9063, LDO11, 900, 50, 3600),
> --
> 2.25.1


  reply	other threads:[~2020-06-26  8:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 19:16 [RESEND 00/10] Fix a bunch of W=1 warnings in Regulator Lee Jones
2020-06-25 19:16 ` [RESEND 01/10] regulator: consumer: Supply missing prototypes for 3 core functions Lee Jones
2020-06-25 19:17 ` [RESEND 02/10] regulator: devres: Fix issues with kerneldoc headers Lee Jones
2020-06-25 19:17 ` [RESEND 03/10] regulator: of_regulator: Add missing colon for rdev kerneldoc argument Lee Jones
2020-06-25 19:17 ` [RESEND 04/10] regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase() Lee Jones
2020-07-07 12:41   ` Linus Walleij
2020-06-25 19:17 ` [RESEND 05/10] regulator: ab8500: Remove unused embedded struct expand_register Lee Jones
2020-07-07 12:42   ` Linus Walleij
2020-06-25 19:17 ` [RESEND 06/10] regulator: wm8350-regulator: Repair odd formatting in documentation Lee Jones
2020-06-26 10:42   ` Charles Keepax
2020-06-25 19:17 ` [RESEND 07/10] regulator: cpcap-regulator: Remove declared and set, but never used variable 'ignore' Lee Jones
2020-06-29 18:26   ` Tony Lindgren
2020-06-25 19:17 ` [RESEND 08/10] regulator: cpcap-regulator: Demote kerneldoc header to standard comment Lee Jones
2020-06-25 19:17 ` [RESEND 09/10] regulator: da9063-regulator: Fix .suspend 'initialized field overwritten' warnings Lee Jones
2020-06-26  8:49   ` Adam Thomson [this message]
2020-06-25 19:17 ` [RESEND 10/10] regulator: max14577-regulator: Demote kerneldoc header to standard comment Lee Jones
2020-06-25 19:48 ` [RESEND 00/10] Fix a bunch of W=1 warnings in Regulator Mark Brown
2020-06-26  9:36   ` Lee Jones
2020-06-26 13:35     ` Mark Brown
2020-06-26 15:16 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM6PR10MB2263AAC42CEE740F885526FA80930@AM6PR10MB2263.EURPRD10.PROD.OUTLOOK.COM \
    --to=adam.thomson.opensource@diasemi.com \
    --cc=Support.Opensource@diasemi.com \
    --cc=broonie@kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®