我正在尝试将postmarketOS移植到三星Galaxy S3 Neo。在Linux内核的编译过程中,出现错误:
ERROR: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
make[1]: *** [/home/pmos/build/src/android_kernel_samsung_s3ve3g/scripts/Makefile.modpost:98: vmlinux.o] Error 1
make: *** [Makefile:938: vmlinux.o] Error 2
该错误似乎与vmlinux.o
。有办法解决吗?
编辑:调试信息:
WARNING: vmlinux.o(.data+0x10094): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
WARNING: vmlinux.o(.data+0x100ac): Section mismatch in reference from the variable msm_mpm_debug_mask to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_mpm_debug_mask references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
解决方案是在mpm.c
和内部mpm-of.c
。
我更改static int msm_mpm_debug_mask = 1
了static int msm_mpm_debug_mask __initdata = 1
两个文件的内部。
有关此问题的更多信息,请点击此处
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句