public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 0/1] kbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set
@ 2022-10-22  3:05 Xin Li
  2022-10-22  3:05 ` [PATCH 1/1] " Xin Li
  0 siblings, 1 reply; 5+ messages in thread
From: Xin Li @ 2022-10-22  3:05 UTC (permalink / raw)
  To: linux-kernel, llvm, linux-kbuild, x86
  Cc: nathan, keescook, andrew.cooper3, hpa, peterz

Andrew Cooper suggested upgrading the orphan section warning to a hard link
error. However Nathan Chancellor said outright turning the warning into an
error with no escape hatch might be too aggressive, as we have had these
warnings triggered by new compiler generated sections, and suggested turning
orphan sections into an error only if CONFIG_WERROR is set. Kees Cook echoed
and emphasized that the mandate from Linus is that we should avoid breaking
builds. It wrecks bisection, it causes problems across compiler versions, etc.

Xin Li (1):
  kbuild: upgrade the orphan section warning to an error if
    CONFIG_WERROR is set

 Makefile                          | 2 +-
 arch/arm/boot/compressed/Makefile | 2 +-
 arch/arm64/kernel/vdso/Makefile   | 2 +-
 arch/arm64/kernel/vdso32/Makefile | 2 +-
 arch/x86/boot/compressed/Makefile | 2 +-
 init/Kconfig                      | 9 ++++++---
 6 files changed, 11 insertions(+), 8 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-10-24 23:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-22  3:05 [PATCH 0/1] kbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set Xin Li
2022-10-22  3:05 ` [PATCH 1/1] " Xin Li
2022-10-24 17:29   ` Nathan Chancellor
2022-10-24 17:32     ` Kees Cook
2022-10-24 23:23       ` Li, Xin3

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