linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module'
@ 2025-03-19 11:31 Naresh Kamboju
  2025-03-19 14:12 ` Naresh Kamboju
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Kamboju @ 2025-03-19 11:31 UTC (permalink / raw)
  To: open list, Linux trace kernel, lkft-triage
  Cc: Steven Rostedt, Masami Hiramatsu, Dan Carpenter, Arnd Bergmann,
	Anders Roxell

Regressions on arm the shmobile_defconfig builds failed with clang-20 and gcc-13

First seen on the next-20250312
 Good: next-20250311
 Bad:  next-20250312 .. next-20250319

Regressions found on arm:
 - gcc-13-shmobile_defconfig
 - gcc-8-shmobile_defconfig
 - clang-20-shmobile_defconfig

Regression Analysis:
 - New regression? Yes
 - Reproducible? Yes

Build regression: arm shmobile_defconfig trace.c undefined type 'struct module'
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

## Build log
kernel/trace/trace.c: In function 'save_mod':
kernel/trace/trace.c:6036:45: error: invalid use of undefined type
'struct module'
 6036 |         entry->mod_addr = (unsigned long)mod->mem[MOD_TEXT].base;
      |                                             ^~
kernel/trace/trace.c:6036:51: error: 'MOD_TEXT' undeclared (first use
in this function)
 6036 |         entry->mod_addr = (unsigned long)mod->mem[MOD_TEXT].base;
      |                                                   ^~~~~~~~

## Source
* Kernel version: 6.14.0-rc7
* Git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
* Git sha: ff7f9b199e3f4cc7d61df5a9a26a7cbb5c1492e6
* Git describe: next-20250319
* Project details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319

## Build
* Build log: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig/log
* Build history:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig/history/
* Build details:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/2uX2E69ngTqvrymzOdYQz0JQ16z/
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2uX2E69ngTqvrymzOdYQz0JQ16z/config

## Steps to reproduce
 - tuxmake --runtime podman --target-arch arm --toolchain gcc-13
--kconfig shmobile_defconfig


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

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

* Re: next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module'
  2025-03-19 11:31 next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module' Naresh Kamboju
@ 2025-03-19 14:12 ` Naresh Kamboju
  2025-03-24 14:33   ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Naresh Kamboju @ 2025-03-19 14:12 UTC (permalink / raw)
  To: Steven Rostedt, open list, Linux trace kernel, lkft-triage
  Cc: Masami Hiramatsu, Dan Carpenter, Arnd Bergmann, Anders Roxell,
	Mark Rutland, Mathieu Desnoyers, Andrew Morton

On Wed, 19 Mar 2025 at 17:01, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> Regressions on arm the shmobile_defconfig builds failed with clang-20 and gcc-13
>
> First seen on the next-20250312
>  Good: next-20250311
>  Bad:  next-20250312 .. next-20250319
>
> Regressions found on arm:
>  - gcc-13-shmobile_defconfig
>  - gcc-8-shmobile_defconfig
>  - clang-20-shmobile_defconfig
>
> Regression Analysis:
>  - New regression? Yes
>  - Reproducible? Yes
>
> Build regression: arm shmobile_defconfig trace.c undefined type 'struct module'
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Anders bisected this build regression to the following commit,

# first bad commit:
   [dca91c1c54686914dec4dabea8bae4f365c02007]
   tracing: Have persistent trace instances save module addresses

Lore link,
 - https://lore.kernel.org/all/CA+G9fYs62qxt1PajEp2A8uUmQFeAsC2JBV2wuspbAxz_hFF7CA@mail.gmail.com/

>
> ## Build log
> kernel/trace/trace.c: In function 'save_mod':
> kernel/trace/trace.c:6036:45: error: invalid use of undefined type
> 'struct module'
>  6036 |         entry->mod_addr = (unsigned long)mod->mem[MOD_TEXT].base;
>       |                                             ^~
> kernel/trace/trace.c:6036:51: error: 'MOD_TEXT' undeclared (first use
> in this function)
>  6036 |         entry->mod_addr = (unsigned long)mod->mem[MOD_TEXT].base;
>       |                                                   ^~~~~~~~
>
> ## Source
> * Kernel version: 6.14.0-rc7
> * Git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> * Git sha: ff7f9b199e3f4cc7d61df5a9a26a7cbb5c1492e6
> * Git describe: next-20250319
> * Project details:
> https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319
>
> ## Build
> * Build log: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig/log
> * Build history:
> https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig/history/
> * Build details:
> https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250319/testrun/27672563/suite/build/test/gcc-13-shmobile_defconfig
> * Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/2uX2E69ngTqvrymzOdYQz0JQ16z/
> * Kernel config:
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2uX2E69ngTqvrymzOdYQz0JQ16z/config
>
> ## Steps to reproduce
>  - tuxmake --runtime podman --target-arch arm --toolchain gcc-13
> --kconfig shmobile_defconfig
>
>
> --
> Linaro LKFT
> https://lkft.linaro.org

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

* Re: next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module'
  2025-03-19 14:12 ` Naresh Kamboju
@ 2025-03-24 14:33   ` Steven Rostedt
  2025-03-25  9:46     ` Naresh Kamboju
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2025-03-24 14:33 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux trace kernel, lkft-triage, Masami Hiramatsu,
	Dan Carpenter, Arnd Bergmann, Anders Roxell, Mark Rutland,
	Mathieu Desnoyers, Andrew Morton

On Wed, 19 Mar 2025 19:42:42 +0530
Naresh Kamboju <naresh.kamboju@linaro.org> wrote:

> On Wed, 19 Mar 2025 at 17:01, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> >
> > Regressions on arm the shmobile_defconfig builds failed with clang-20 and gcc-13
> >
> > First seen on the next-20250312
> >  Good: next-20250311
> >  Bad:  next-20250312 .. next-20250319
> >
> > Regressions found on arm:
> >  - gcc-13-shmobile_defconfig
> >  - gcc-8-shmobile_defconfig
> >  - clang-20-shmobile_defconfig
> >
> > Regression Analysis:
> >  - New regression? Yes
> >  - Reproducible? Yes
> >
> > Build regression: arm shmobile_defconfig trace.c undefined type 'struct module'
> > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>  
> 
> Anders bisected this build regression to the following commit,
> 
> # first bad commit:
>    [dca91c1c54686914dec4dabea8bae4f365c02007]
>    tracing: Have persistent trace instances save module addresses
> 
> Lore link,
>  - https://lore.kernel.org/all/CA+G9fYs62qxt1PajEp2A8uUmQFeAsC2JBV2wuspbAxz_hFF7CA@mail.gmail.com/

The fix should have been pushed to linux-next already.

Could you test the latest linux-next?

-- Steve

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

* Re: next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module'
  2025-03-24 14:33   ` Steven Rostedt
@ 2025-03-25  9:46     ` Naresh Kamboju
  0 siblings, 0 replies; 4+ messages in thread
From: Naresh Kamboju @ 2025-03-25  9:46 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: open list, Linux trace kernel, lkft-triage, Masami Hiramatsu,
	Dan Carpenter, Arnd Bergmann, Anders Roxell, Mark Rutland,
	Mathieu Desnoyers, Andrew Morton

On Mon, 24 Mar 2025 at 20:02, Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Wed, 19 Mar 2025 19:42:42 +0530
> Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> > On Wed, 19 Mar 2025 at 17:01, Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
> > >
> > > Regressions on arm the shmobile_defconfig builds failed with clang-20 and gcc-13
> > >
> > > First seen on the next-20250312
> > >  Good: next-20250311
> > >  Bad:  next-20250312 .. next-20250319
> > >
> > > Regressions found on arm:
> > >  - gcc-13-shmobile_defconfig
> > >  - gcc-8-shmobile_defconfig
> > >  - clang-20-shmobile_defconfig
> > >
> > > Regression Analysis:
> > >  - New regression? Yes
> > >  - Reproducible? Yes
> > >
> > > Build regression: arm shmobile_defconfig trace.c undefined type 'struct module'
> > > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> >
> > Anders bisected this build regression to the following commit,
> >
> > # first bad commit:
> >    [dca91c1c54686914dec4dabea8bae4f365c02007]
> >    tracing: Have persistent trace instances save module addresses
> >
> > Lore link,
> >  - https://lore.kernel.org/all/CA+G9fYs62qxt1PajEp2A8uUmQFeAsC2JBV2wuspbAxz_hFF7CA@mail.gmail.com/
>
> The fix should have been pushed to linux-next already.
>
> Could you test the latest linux-next?

The reported issue is fixed on tag: next-20250324.
Please refer below link for more details,

Link:
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20250324/testrun/27735288/suite/build/test/gcc-13-shmobile_defconfig/history/

- Naresh

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

end of thread, other threads:[~2025-03-25  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 11:31 next-20250319: arm shmobile_defconfig trace.c undefined type 'struct module' Naresh Kamboju
2025-03-19 14:12 ` Naresh Kamboju
2025-03-24 14:33   ` Steven Rostedt
2025-03-25  9:46     ` Naresh Kamboju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).