public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
@ 2023-08-08  6:29 Naresh Kamboju
  2023-08-08 10:49 ` Cristian Marussi
  0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2023-08-08  6:29 UTC (permalink / raw)
  To: linux-stable, lkft-triage, clang-built-linux
  Cc: Sudeep Holla, Cristian Marussi, Greg Kroah-Hartman, Sasha Levin,
	Arnd Bergmann, Anders Roxell

LKFT build plans upgraded to clang-17 and found this failure,

While building stable-rc 5.15 arm with clang-17 failed with below
warnings and errors.

Build log:
----------

drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
   39 |         int irq;
      |             ^
drivers/firmware/arm_scmi/smc.c:34:6: note: previous declaration is here
   34 |         int irq;
      |             ^
drivers/firmware/arm_scmi/smc.c:118:20: error: use of undeclared
identifier 'irq'
  118 |                 scmi_info->irq = irq;
      |                                  ^
2 errors generated.

  Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Links:
 - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/log
 - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/details/


Steps to reproduce:
 tuxmake --runtime podman --target-arch arm --toolchain clang-17
--kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/config
LLVM=1 LLVM_IAS=1

  Links:
    - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/tuxmake_reproducer.sh

--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
  2023-08-08  6:29 stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq' Naresh Kamboju
@ 2023-08-08 10:49 ` Cristian Marussi
  2023-08-08 15:30   ` Nick Desaulniers
  0 siblings, 1 reply; 5+ messages in thread
From: Cristian Marussi @ 2023-08-08 10:49 UTC (permalink / raw)
  To: Naresh Kamboju, Sasha Levin
  Cc: linux-stable, lkft-triage, clang-built-linux, Sudeep Holla,
	Greg Kroah-Hartman, Arnd Bergmann, Anders Roxell

On Tue, Aug 08, 2023 at 11:59:22AM +0530, Naresh Kamboju wrote:
> LKFT build plans upgraded to clang-17 and found this failure,
> 
> While building stable-rc 5.15 arm with clang-17 failed with below
> warnings and errors.
> 
> Build log:
> ----------
> 
> drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
>    39 |         int irq;
>       |             ^
> drivers/firmware/arm_scmi/smc.c:34:6: note: previous declaration is here
>    34 |         int irq;
>       |             ^
> drivers/firmware/arm_scmi/smc.c:118:20: error: use of undeclared
> identifier 'irq'
>   118 |                 scmi_info->irq = irq;
>       |                                  ^
> 2 errors generated.
> 
>   Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> 
> Links:
>  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/log
>  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/details/
> 

Hi Naresh and Sasha,

so this fix (unluckily) applies cleanly to v5.15 but fails to build since the
logic and code around it was different in v5.15.

While looking at backporting it properly, though, I realized that the fix is
NOT needed really in v5.15 due to the different context and logic, so I ask you
to DROP this fix in v5.15.

I suppose the patch has been automatically applied because the Fixes referred
a commit that was on v5.15 too since some of those lines were indeed impacted
and were present also in later versions, but the logic around it has
changed afterwards, so the original code (up to v5.17) was not really affected
by the bug addressed by this fix...only later versions from v5.18 (included)
onwards needs it.

Moreover note that the whole SMC ISR logic was introduced in v5.12 (and was
good up to v5.17 as said) so v5.15 is really the only stable release that needs
to drop this fix.

Thanks and sorry for the noise,
Cristian

> 
> Steps to reproduce:
>  tuxmake --runtime podman --target-arch arm --toolchain clang-17
> --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/config
> LLVM=1 LLVM_IAS=1
> 
>   Links:
>     - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/tuxmake_reproducer.sh
> 
> --
> Linaro LKFT
> https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
  2023-08-08 10:49 ` Cristian Marussi
@ 2023-08-08 15:30   ` Nick Desaulniers
  2023-08-08 15:44     ` Sudeep Holla
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2023-08-08 15:30 UTC (permalink / raw)
  To: Cristian Marussi
  Cc: Naresh Kamboju, Sasha Levin, linux-stable, lkft-triage,
	clang-built-linux, Sudeep Holla, Greg Kroah-Hartman,
	Arnd Bergmann, Anders Roxell

On Tue, Aug 8, 2023 at 3:49 AM Cristian Marussi
<cristian.marussi@arm.com> wrote:
>
> On Tue, Aug 08, 2023 at 11:59:22AM +0530, Naresh Kamboju wrote:
> > LKFT build plans upgraded to clang-17 and found this failure,
> >
> > While building stable-rc 5.15 arm with clang-17 failed with below
> > warnings and errors.
> >
> > Build log:
> > ----------
> >
> > drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
> >    39 |         int irq;
> >       |             ^
> > drivers/firmware/arm_scmi/smc.c:34:6: note: previous declaration is here
> >    34 |         int irq;
> >       |             ^
> > drivers/firmware/arm_scmi/smc.c:118:20: error: use of undeclared
> > identifier 'irq'
> >   118 |                 scmi_info->irq = irq;
> >       |                                  ^
> > 2 errors generated.
> >
> >   Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > Links:
> >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/log
> >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/details/
> >
>
> Hi Naresh and Sasha,
>
> so this fix (unluckily) applies cleanly to v5.15 but fails to build since the
> logic and code around it was different in v5.15.
>
> While looking at backporting it properly, though, I realized that the fix is
> NOT needed really in v5.15 due to the different context and logic, so I ask you
> to DROP this fix in v5.15.

What's the SHA of the patch that you are referring to (in
linux-5.15.y) that you're suggesting the stable maintainers revert?

>
> I suppose the patch has been automatically applied because the Fixes referred
> a commit that was on v5.15 too since some of those lines were indeed impacted
> and were present also in later versions, but the logic around it has
> changed afterwards, so the original code (up to v5.17) was not really affected
> by the bug addressed by this fix...only later versions from v5.18 (included)
> onwards needs it.
>
> Moreover note that the whole SMC ISR logic was introduced in v5.12 (and was
> good up to v5.17 as said) so v5.15 is really the only stable release that needs
> to drop this fix.
>
> Thanks and sorry for the noise,
> Cristian
>
> >
> > Steps to reproduce:
> >  tuxmake --runtime podman --target-arch arm --toolchain clang-17
> > --kconfig https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/config
> > LLVM=1 LLVM_IAS=1
> >
> >   Links:
> >     - https://storage.tuxsuite.com/public/linaro/lkft/builds/2TeTE3iE8aq4t1kv169LcMmd9jo/tuxmake_reproducer.sh
> >
> > --
> > Linaro LKFT
> > https://lkft.linaro.org
>


-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
  2023-08-08 15:30   ` Nick Desaulniers
@ 2023-08-08 15:44     ` Sudeep Holla
  2023-08-08 16:02       ` Cristian Marussi
  0 siblings, 1 reply; 5+ messages in thread
From: Sudeep Holla @ 2023-08-08 15:44 UTC (permalink / raw)
  To: Nick Desaulniers
  Cc: Cristian Marussi, Naresh Kamboju, Sasha Levin, linux-stable,
	lkft-triage, clang-built-linux, Greg Kroah-Hartman, Arnd Bergmann,
	Anders Roxell

On Tue, Aug 08, 2023 at 08:30:30AM -0700, Nick Desaulniers wrote:
> On Tue, Aug 8, 2023 at 3:49 AM Cristian Marussi
> <cristian.marussi@arm.com> wrote:
> >
> > On Tue, Aug 08, 2023 at 11:59:22AM +0530, Naresh Kamboju wrote:
> > > LKFT build plans upgraded to clang-17 and found this failure,
> > >
> > > While building stable-rc 5.15 arm with clang-17 failed with below
> > > warnings and errors.
> > >
> > > Build log:
> > > ----------
> > >
> > > drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
> > >    39 |         int irq;
> > >       |             ^
> > > drivers/firmware/arm_scmi/smc.c:34:6: note: previous declaration is here
> > >    34 |         int irq;
> > >       |             ^
> > > drivers/firmware/arm_scmi/smc.c:118:20: error: use of undeclared
> > > identifier 'irq'
> > >   118 |                 scmi_info->irq = irq;
> > >       |                                  ^
> > > 2 errors generated.
> > >
> > >   Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > >
> > > Links:
> > >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/log
> > >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/details/
> > >
> >
> > Hi Naresh and Sasha,
> >
> > so this fix (unluckily) applies cleanly to v5.15 but fails to build since the
> > logic and code around it was different in v5.15.
> >
> > While looking at backporting it properly, though, I realized that the fix is
> > NOT needed really in v5.15 due to the different context and logic, so I ask you
> > to DROP this fix in v5.15.
> 
> What's the SHA of the patch that you are referring to (in
> linux-5.15.y) that you're suggesting the stable maintainers revert?
>

8482711670fdfc8f89d437284a6ad159ee88615f
Commit 8482711670fd ("firmware: arm_scmi: Fix chan_free cleanup on SMC")

For reference upstream commit 
d1ff11d7ad87 ("firmware: arm_scmi: Fix chan_free cleanup on SMC")

Note this is only in
git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y

And not in

git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
  2023-08-08 15:44     ` Sudeep Holla
@ 2023-08-08 16:02       ` Cristian Marussi
  0 siblings, 0 replies; 5+ messages in thread
From: Cristian Marussi @ 2023-08-08 16:02 UTC (permalink / raw)
  To: Sudeep Holla
  Cc: Nick Desaulniers, Naresh Kamboju, Sasha Levin, linux-stable,
	lkft-triage, clang-built-linux, Greg Kroah-Hartman, Arnd Bergmann,
	Anders Roxell

On Tue, Aug 08, 2023 at 04:44:32PM +0100, Sudeep Holla wrote:
> On Tue, Aug 08, 2023 at 08:30:30AM -0700, Nick Desaulniers wrote:
> > On Tue, Aug 8, 2023 at 3:49 AM Cristian Marussi
> > <cristian.marussi@arm.com> wrote:
> > >
> > > On Tue, Aug 08, 2023 at 11:59:22AM +0530, Naresh Kamboju wrote:
> > > > LKFT build plans upgraded to clang-17 and found this failure,
> > > >
> > > > While building stable-rc 5.15 arm with clang-17 failed with below
> > > > warnings and errors.
> > > >
> > > > Build log:
> > > > ----------
> > > >
> > > > drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq'
> > > >    39 |         int irq;
> > > >       |             ^
> > > > drivers/firmware/arm_scmi/smc.c:34:6: note: previous declaration is here
> > > >    34 |         int irq;
> > > >       |             ^
> > > > drivers/firmware/arm_scmi/smc.c:118:20: error: use of undeclared
> > > > identifier 'irq'
> > > >   118 |                 scmi_info->irq = irq;
> > > >       |                                  ^
> > > > 2 errors generated.
> > > >
> > > >   Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> > > >
> > > > Links:
> > > >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/log
> > > >  - https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.15.y/build/v5.15.124-80-g6a5dd0772845/testrun/18864721/suite/build/test/clang-lkftconfig/details/
> > > >
> > >
> > > Hi Naresh and Sasha,
> > >
> > > so this fix (unluckily) applies cleanly to v5.15 but fails to build since the
> > > logic and code around it was different in v5.15.
> > >
> > > While looking at backporting it properly, though, I realized that the fix is
> > > NOT needed really in v5.15 due to the different context and logic, so I ask you
> > > to DROP this fix in v5.15.
> > 
> > What's the SHA of the patch that you are referring to (in
> > linux-5.15.y) that you're suggesting the stable maintainers revert?
> >
> 
> 8482711670fdfc8f89d437284a6ad159ee88615f
> Commit 8482711670fd ("firmware: arm_scmi: Fix chan_free cleanup on SMC")
> 
> For reference upstream commit 
> d1ff11d7ad87 ("firmware: arm_scmi: Fix chan_free cleanup on SMC")
> 
> Note this is only in
> git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.15.y
> 
> And not in
> 
> git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y

Yes, this is a patch that was recently added to the stable queue for 5.15 and
it is still pending AFAIU (I suppose since it failed to build once applied).

There is another previous failed build report from yesterday:

https://lore.kernel.org/all/202308070912.4UYUVJVJ-lkp@intel.com/

Thanks,
Cristian


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-08 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08  6:29 stable-rc 5.15: clang-17: drivers/firmware/arm_scmi/smc.c:39:6: error: duplicate member 'irq' Naresh Kamboju
2023-08-08 10:49 ` Cristian Marussi
2023-08-08 15:30   ` Nick Desaulniers
2023-08-08 15:44     ` Sudeep Holla
2023-08-08 16:02       ` Cristian Marussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox