From: Guenter Roeck <groeck@google.com> To: Aashish Sharma <shraash@google.com> Cc: Lee Jones <lee.jones@linaro.org>, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Ludovic Desroches <ludovic.desroches@microchip.com>, "moderated list:ARM PORT" <linux-arm-kernel@lists.infradead.org>, linux-kernel <linux-kernel@vger.kernel.org>, Guenter Roeck <groeck@chromium.org> Subject: Re: [PATCH] mfd: Avoid unused variable 'atmel_flexcom_pm_ops' warning Date: Fri, 25 Feb 2022 11:00:17 -0800 [thread overview] Message-ID: <CABXOdTcMj_=XqTnTiUmT8r585W2N2-12ddg4OGDHpwaiTp-Tjw@mail.gmail.com> (raw) In-Reply-To: <20220225101520.3188373-1-shraash@google.com> On Fri, Feb 25, 2022 at 2:15 AM Aashish Sharma <shraash@google.com> wrote: > > Fix this kernel test robot warning: > > drivers/mfd/atmel-flexcom.c:108:32: warning: unused > variable 'atmel_flexcom_pm_ops' [-Wunused-const-variable] > > The variable atmel_flexcom_pm_ops is unused when CONFIG_PM > is not selected, so marking it as __maybe_unsed. > > Signed-off-by: Aashish Sharma <shraash@google.com> Reviewed-by: Guenter Roeck <groeck@google.com> > --- > drivers/mfd/atmel-flexcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c > index 559eb4d352b6..33caa4fba6af 100644 > --- a/drivers/mfd/atmel-flexcom.c > +++ b/drivers/mfd/atmel-flexcom.c > @@ -105,7 +105,7 @@ static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev) > return 0; > } > > -static const struct dev_pm_ops atmel_flexcom_pm_ops = { > +static const struct dev_pm_ops __maybe_unused atmel_flexcom_pm_ops = { > .resume_noirq = atmel_flexcom_resume_noirq, > }; > > -- > 2.35.1.574.g5d30c73bfb-goog >
WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <groeck@google.com> To: Aashish Sharma <shraash@google.com> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>, linux-kernel <linux-kernel@vger.kernel.org>, Ludovic Desroches <ludovic.desroches@microchip.com>, Guenter Roeck <groeck@chromium.org>, Lee Jones <lee.jones@linaro.org>, "moderated list:ARM PORT" <linux-arm-kernel@lists.infradead.org> Subject: Re: [PATCH] mfd: Avoid unused variable 'atmel_flexcom_pm_ops' warning Date: Fri, 25 Feb 2022 11:00:17 -0800 [thread overview] Message-ID: <CABXOdTcMj_=XqTnTiUmT8r585W2N2-12ddg4OGDHpwaiTp-Tjw@mail.gmail.com> (raw) In-Reply-To: <20220225101520.3188373-1-shraash@google.com> On Fri, Feb 25, 2022 at 2:15 AM Aashish Sharma <shraash@google.com> wrote: > > Fix this kernel test robot warning: > > drivers/mfd/atmel-flexcom.c:108:32: warning: unused > variable 'atmel_flexcom_pm_ops' [-Wunused-const-variable] > > The variable atmel_flexcom_pm_ops is unused when CONFIG_PM > is not selected, so marking it as __maybe_unsed. > > Signed-off-by: Aashish Sharma <shraash@google.com> Reviewed-by: Guenter Roeck <groeck@google.com> > --- > drivers/mfd/atmel-flexcom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c > index 559eb4d352b6..33caa4fba6af 100644 > --- a/drivers/mfd/atmel-flexcom.c > +++ b/drivers/mfd/atmel-flexcom.c > @@ -105,7 +105,7 @@ static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev) > return 0; > } > > -static const struct dev_pm_ops atmel_flexcom_pm_ops = { > +static const struct dev_pm_ops __maybe_unused atmel_flexcom_pm_ops = { > .resume_noirq = atmel_flexcom_resume_noirq, > }; > > -- > 2.35.1.574.g5d30c73bfb-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-02-25 19:00 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-25 10:15 [PATCH] mfd: Avoid unused variable 'atmel_flexcom_pm_ops' warning Aashish Sharma 2022-02-25 10:15 ` Aashish Sharma 2022-02-25 19:00 ` Guenter Roeck [this message] 2022-02-25 19:00 ` Guenter Roeck 2022-02-28 7:36 ` Claudiu.Beznea 2022-02-28 7:36 ` Claudiu.Beznea 2022-02-28 8:15 ` Lee Jones 2022-02-28 8:15 ` Lee Jones
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='CABXOdTcMj_=XqTnTiUmT8r585W2N2-12ddg4OGDHpwaiTp-Tjw@mail.gmail.com' \ --to=groeck@google.com \ --cc=alexandre.belloni@bootlin.com \ --cc=groeck@chromium.org \ --cc=lee.jones@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=ludovic.desroches@microchip.com \ --cc=nicolas.ferre@microchip.com \ --cc=shraash@google.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.