From a181a4631d1d14d89039439a4ec57725c52fa7f2 Mon Sep 17 00:00:00 2001 From: Caspar Zhang Date: Sun, 29 Sep 2019 10:06:23 +0800 Subject: [PATCH] configs: enable CONFIG_SECTION_MISMATCH_WARN_ONLY to allow section mismatch Enable this configuration to bypass such error reports: WARNING: drivers/powercap/intel_rapl_common.o(.text+0x10fb): Section mismatch in reference from the function rapl_add_package() to the variable .init.rodata:rapl_ids The function rapl_add_package() references the variable __initconst rapl_ids. This is often because rapl_add_package lacks a __initconst annotation or the annotation of rapl_ids is wrong. FATAL: modpost: Section mismatches detected. Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. make[1]: *** [__modpost] Error 1 Signed-off-by: Caspar Zhang --- config-4.19.y-x86_64-debug-intel | 2 +- config-4.19.y-x86_64-intel | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config-4.19.y-x86_64-debug-intel b/config-4.19.y-x86_64-debug-intel index 1b864a4b9b6f..9ba206d2dc13 100644 --- a/config-4.19.y-x86_64-debug-intel +++ b/config-4.19.y-x86_64-debug-intel @@ -4042,7 +4042,7 @@ CONFIG_FRAME_WARN=1024 CONFIG_DEBUG_FS=y # CONFIG_HEADERS_CHECK is not set CONFIG_DEBUG_SECTION_MISMATCH=y -# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set +CONFIG_SECTION_MISMATCH_WARN_ONLY=y CONFIG_STACK_VALIDATION=y # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set CONFIG_MAGIC_SYSRQ=y diff --git a/config-4.19.y-x86_64-intel b/config-4.19.y-x86_64-intel index c21bbc56c2e0..14a28a43efd3 100644 --- a/config-4.19.y-x86_64-intel +++ b/config-4.19.y-x86_64-intel @@ -4038,7 +4038,7 @@ CONFIG_FRAME_WARN=1024 CONFIG_DEBUG_FS=y # CONFIG_HEADERS_CHECK is not set CONFIG_DEBUG_SECTION_MISMATCH=y -# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set +CONFIG_SECTION_MISMATCH_WARN_ONLY=y CONFIG_STACK_VALIDATION=y # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set CONFIG_MAGIC_SYSRQ=y -- GitLab