Re: Calculating array sizes in C - was: Re: Build regressions/improvements in v6.2-rc1

From
Michael Karcher <hidden>
Date
2023-01-20 19:29:49
Also in
amd-gfx, linux-media, linux-mips, linux-sh, linux-wireless, linuxppc-dev, lkml
Reply to
John Paul Adrian Glaubitz, 2023-01-20
Hello Adrian,
Could you post a kernel patch for that? I would be happy to test it on my
SH-7785CLR board. Also, I'm going to file a bug report against GCC.
I filed the bug already. It's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108483.

The diff is attached. It's published as CC0 in case anyone considers this trivial change copyrightable. This patch prevents this one specific warning from being upgraded to "error" even if you configure the kernel to use "-Werror". It still keeps it active as warning, though.

Kind regards,
  Michael Karcher

Attachments

Thread (18 messages) 18 messages, 8 authors, last reply 2023-01-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help