Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/Kconfig.debug: cleanup CONFIG_DEBUG_SECTION_MISMATCH help text

Simplify formulations, correct flow, split it into proper paragraphs and
update structure.

No functional changes.

Link: https://lkml.kernel.org/r/20251029122743.1110-1-bp@kernel.org
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Borislav Petkov (AMD) and committed by
Andrew Morton
7f37d88f 93ce0ff1

+16 -16
+16 -16
lib/Kconfig.debug
··· 483 483 bool "Enable full Section mismatch analysis" 484 484 depends on CC_IS_GCC 485 485 help 486 - The section mismatch analysis checks if there are illegal 487 - references from one section to another section. 488 - During linktime or runtime, some sections are dropped; 489 - any use of code/data previously in these sections would 490 - most likely result in an oops. 491 - In the code, functions and variables are annotated with 492 - __init,, etc. (see the full list in include/linux/init.h), 493 - which results in the code/data being placed in specific sections. 486 + The section mismatch analysis checks if there are illegal references 487 + from one section to another. During linktime or runtime, some 488 + sections are dropped; any use of code/data previously in these 489 + sections would most likely result in an oops. 490 + 491 + In the code, functions and variables are annotated with __init, 492 + __initdata, and so on (see the full list in include/linux/init.h). 493 + This directs the toolchain to place code/data in specific sections. 494 + 494 495 The section mismatch analysis is always performed after a full 495 - kernel build, and enabling this option causes the following 496 - additional step to occur: 497 - - Add the option -fno-inline-functions-called-once to gcc commands. 498 - When inlining a function annotated with __init in a non-init 499 - function, we would lose the section information and thus 500 - the analysis would not catch the illegal reference. 501 - This option tells gcc to inline less (but it does result in 502 - a larger kernel). 496 + kernel build, and enabling this option causes the option 497 + -fno-inline-functions-called-once to be added to gcc commands. 498 + 499 + However, when inlining a function annotated with __init in 500 + a non-init function, we would lose the section information and thus 501 + the analysis would not catch the illegal reference. This option 502 + tells gcc to inline less (but it does result in a larger kernel). 503 503 504 504 config SECTION_MISMATCH_WARN_ONLY 505 505 bool "Make section mismatch errors non-fatal"