* Re: linux-next: build failure after merge of the tip tree [not found] ` <dd740dda-a03e-4f3a-bb46-e551f0799c50@intel.com> @ 2024-11-04 14:01 ` Peter Zijlstra 2024-11-06 9:45 ` Jonathan Cameron 0 siblings, 1 reply; 3+ messages in thread From: Peter Zijlstra @ 2024-11-04 14:01 UTC (permalink / raw) To: Przemek Kitszel Cc: Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Linux Kernel Mailing List, Linux Next Mailing List, megi, jic23, lars, linux-iio It might help if we put the relevant maintainers on Cc? On Mon, Nov 04, 2024 at 02:37:57PM +0100, Przemek Kitszel wrote: > On 11/1/24 04:19, Stephen Rothwell wrote: > > Hi all, > > > > On Mon, 28 Oct 2024 16:53:36 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > > > failed like this: > > > > > > drivers/iio/magnetometer/af8133j.c: In function 'af8133j_set_scale': > > > drivers/iio/magnetometer/af8133j.c:315:12: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else] > > > 315 | if (!pm_runtime_status_suspended(dev)) > > > | ^ > > > cc1: all warnings being treated as errors > > > > > > Probably caused by commit > > > > > > fcc22ac5baf0 ("cleanup: Adjust scoped_guard() macros to avoid potential warning") > > > > > > I have applied the following for today but I wonder if there may be > > > others. > > > > > > From: Stephen Rothwell <sfr@canb.auug.org.au> > > > Date: Mon, 28 Oct 2024 16:01:15 +1100 > > > Subject: [PATCH] fix up for "cleanup: Adjust scoped_guard() macros to avoid > > > potential warning" > > > > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > > > --- > > > drivers/iio/magnetometer/af8133j.c | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/iio/magnetometer/af8133j.c b/drivers/iio/magnetometer/af8133j.c > > > index d81d89af6283..acd291f3e792 100644 > > > --- a/drivers/iio/magnetometer/af8133j.c > > > +++ b/drivers/iio/magnetometer/af8133j.c > > > @@ -312,10 +312,11 @@ static int af8133j_set_scale(struct af8133j_data *data, > > > * When suspended, just store the new range to data->range to be > > > * applied later during power up. > > > */ > > > - if (!pm_runtime_status_suspended(dev)) > > > + if (!pm_runtime_status_suspended(dev)) { > > > scoped_guard(mutex, &data->mutex) > > > ret = regmap_write(data->regmap, > > > AF8133J_REG_RANGE, range); > > > + } > > > pm_runtime_enable(dev); > > > > I am still applying this patch. > > > > This patch of yours is necessary, could you make it permanent? > > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2024-11-04 14:01 ` linux-next: build failure after merge of the tip tree Peter Zijlstra @ 2024-11-06 9:45 ` Jonathan Cameron 2024-11-07 16:35 ` Przemek Kitszel 0 siblings, 1 reply; 3+ messages in thread From: Jonathan Cameron @ 2024-11-06 9:45 UTC (permalink / raw) To: Peter Zijlstra Cc: Przemek Kitszel, Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Linux Kernel Mailing List, Linux Next Mailing List, megi, lars, linux-iio On Mon, 4 Nov 2024 15:01:06 +0100 Peter Zijlstra <peterz@infradead.org> wrote: > It might help if we put the relevant maintainers on Cc? > > On Mon, Nov 04, 2024 at 02:37:57PM +0100, Przemek Kitszel wrote: > > On 11/1/24 04:19, Stephen Rothwell wrote: > > > Hi all, > > > > > > On Mon, 28 Oct 2024 16:53:36 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > > > > > > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > > > > failed like this: > > > > > > > > drivers/iio/magnetometer/af8133j.c: In function 'af8133j_set_scale': > > > > drivers/iio/magnetometer/af8133j.c:315:12: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else] > > > > 315 | if (!pm_runtime_status_suspended(dev)) > > > > | ^ > > > > cc1: all warnings being treated as errors > > > > > > > > Probably caused by commit > > > > > > > > fcc22ac5baf0 ("cleanup: Adjust scoped_guard() macros to avoid potential warning") > > > > > > > > I have applied the following for today but I wonder if there may be > > > > others. > > > > > > > > From: Stephen Rothwell <sfr@canb.auug.org.au> > > > > Date: Mon, 28 Oct 2024 16:01:15 +1100 > > > > Subject: [PATCH] fix up for "cleanup: Adjust scoped_guard() macros to avoid > > > > potential warning" > > > > > > > > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> > > > > --- > > > > drivers/iio/magnetometer/af8133j.c | 3 ++- > > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/iio/magnetometer/af8133j.c b/drivers/iio/magnetometer/af8133j.c > > > > index d81d89af6283..acd291f3e792 100644 > > > > --- a/drivers/iio/magnetometer/af8133j.c > > > > +++ b/drivers/iio/magnetometer/af8133j.c > > > > @@ -312,10 +312,11 @@ static int af8133j_set_scale(struct af8133j_data *data, > > > > * When suspended, just store the new range to data->range to be > > > > * applied later during power up. > > > > */ > > > > - if (!pm_runtime_status_suspended(dev)) > > > > + if (!pm_runtime_status_suspended(dev)) { > > > > scoped_guard(mutex, &data->mutex) > > > > ret = regmap_write(data->regmap, > > > > AF8133J_REG_RANGE, range); > > > > + } Might as well flip it to a guard() given the scope is the same and it will be a little more readable. Otherwise I'm fine taking a patch doing this if someone can send on to linux-iio@vger.kernel.org I'll get to making a patch at somepoint but just back from travel so a lot of other things on my queue today. > > > > pm_runtime_enable(dev); > > > > > > I am still applying this patch. > > > > > > > This patch of yours is necessary, could you make it permanent? > > > > Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: build failure after merge of the tip tree 2024-11-06 9:45 ` Jonathan Cameron @ 2024-11-07 16:35 ` Przemek Kitszel 0 siblings, 0 replies; 3+ messages in thread From: Przemek Kitszel @ 2024-11-07 16:35 UTC (permalink / raw) To: Jonathan Cameron, Peter Zijlstra Cc: Stephen Rothwell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Linux Kernel Mailing List, Linux Next Mailing List, megi, lars, linux-iio On 11/6/24 10:45, Jonathan Cameron wrote: > On Mon, 4 Nov 2024 15:01:06 +0100 > Peter Zijlstra <peterz@infradead.org> wrote: > >> It might help if we put the relevant maintainers on Cc? >> >> On Mon, Nov 04, 2024 at 02:37:57PM +0100, Przemek Kitszel wrote: >>> On 11/1/24 04:19, Stephen Rothwell wrote: >>>> Hi all, >>>> >>>> On Mon, 28 Oct 2024 16:53:36 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote: >>>>> >>>>> After merging the tip tree, today's linux-next build (x86_64 allmodconfig) >>>>> failed like this: >>>>> >>>>> drivers/iio/magnetometer/af8133j.c: In function 'af8133j_set_scale': >>>>> drivers/iio/magnetometer/af8133j.c:315:12: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else] >>>>> 315 | if (!pm_runtime_status_suspended(dev)) >>>>> | ^ >>>>> cc1: all warnings being treated as errors >>>>> >>>>> Probably caused by commit >>>>> >>>>> fcc22ac5baf0 ("cleanup: Adjust scoped_guard() macros to avoid potential warning") >>>>> >>>>> I have applied the following for today but I wonder if there may be >>>>> others. >>>>> >>>>> From: Stephen Rothwell <sfr@canb.auug.org.au> >>>>> Date: Mon, 28 Oct 2024 16:01:15 +1100 >>>>> Subject: [PATCH] fix up for "cleanup: Adjust scoped_guard() macros to avoid >>>>> potential warning" >>>>> >>>>> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> >>>>> --- >>>>> drivers/iio/magnetometer/af8133j.c | 3 ++- >>>>> 1 file changed, 2 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/drivers/iio/magnetometer/af8133j.c b/drivers/iio/magnetometer/af8133j.c >>>>> index d81d89af6283..acd291f3e792 100644 >>>>> --- a/drivers/iio/magnetometer/af8133j.c >>>>> +++ b/drivers/iio/magnetometer/af8133j.c >>>>> @@ -312,10 +312,11 @@ static int af8133j_set_scale(struct af8133j_data *data, >>>>> * When suspended, just store the new range to data->range to be >>>>> * applied later during power up. >>>>> */ >>>>> - if (!pm_runtime_status_suspended(dev)) >>>>> + if (!pm_runtime_status_suspended(dev)) { >>>>> scoped_guard(mutex, &data->mutex) >>>>> ret = regmap_write(data->regmap, >>>>> AF8133J_REG_RANGE, range); >>>>> + } > > Might as well flip it to a guard() given the scope is the same and it will > be a little more readable. > > Otherwise I'm fine taking a patch doing this if someone can send on to > linux-iio@vger.kernel.org there were no replies here, and whole story has started by my patch, so I will post this patch of Stephen tomorrow > > > I'll get to making a patch at somepoint but just back from travel > so a lot of other things on my queue today. > > > >>>>> pm_runtime_enable(dev); >>>> >>>> I am still applying this patch. >>>> >>> >>> This patch of yours is necessary, could you make it permanent? >>> >>> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-07 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241028165336.7b46ce25@canb.auug.org.au>
[not found] ` <20241101141952.4990f238@canb.auug.org.au>
[not found] ` <dd740dda-a03e-4f3a-bb46-e551f0799c50@intel.com>
2024-11-04 14:01 ` linux-next: build failure after merge of the tip tree Peter Zijlstra
2024-11-06 9:45 ` Jonathan Cameron
2024-11-07 16:35 ` Przemek Kitszel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox