提交 a181a463 编写于 作者: C Caspar Zhang

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: NCaspar Zhang <caspar@linux.alibaba.com>
上级 1be5a3c8
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册