[GIT PULL] Enable -Wstringop-overflow globally

From: Gustavo A. R. Silva
Date: Mon Jan 22 2024 - 11:55:01 EST


The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d:

Linux 6.8-rc1 (2024-01-21 14:11:32 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wstringop-overflow-for-6.8-rc2

for you to fetch changes up to a5e0ace04fbf56c1794b1a2fa7a93672753b3fc7:

init: Kconfig: Disable -Wstringop-overflow for GCC-11 (2024-01-21 17:45:31 -0600)

----------------------------------------------------------------
Enable -Wstringop-overflow globally

Hi Linus,

Please, pull the following patches that enable -Wstringop-overflow,
globally. These patches have been baking in linux-next for a whole
development cycle.

I waited for the release of -rc1 to run a final build-test on top of
it before sending this pull request. Fortunatelly, after building
358 kernels overnight (basically all supported archs with a wide
variety of configs), no more warnings have surfaced! :)

Thus, we are in a good position to enable this compiler option for
all versions of GCC that support it, with the exception of GCC-11,
which appears to have some issues with this option[1].

[1] https://lore.kernel.org/lkml/b3c99290-40bc-426f-b3d2-1aa903f95c4e@xxxxxxxxxxxxxx/

Thanks
--
Gustavo

----------------------------------------------------------------
Gustavo A. R. Silva (2):
Makefile: Enable -Wstringop-overflow globally
init: Kconfig: Disable -Wstringop-overflow for GCC-11

Makefile | 4 ++++
init/Kconfig | 12 ++++++++++++
scripts/Makefile.extrawarn | 2 --
3 files changed, 16 insertions(+), 2 deletions(-)