如何修复Linux内核部分不匹配?

安德里亚56

我正在尝试将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
安德里亚56

解决方案是在mpm.c内部mpm-of.c

我更改static int msm_mpm_debug_mask = 1static int msm_mpm_debug_mask __initdata = 1两个文件的内部。

有关此问题的更多信息,请点击此处

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何解决Fedora中内核版本与内核开发版本之间的不匹配?

Linux内核-如何将jprobe与kretprobe匹配?

如何/在哪里找到要修复的Linux内核错误?

什么是内核部分不匹配?

如何修复ArrayAdapter中的类型不匹配?

如何修复文件格式和扩展名不匹配?

如何修复Jenkins HTML报告“校验和不匹配”?

如何修复表单密码验证,密码不匹配

如何在Scala中修复此类型不匹配错误?

如何修复在构建Linux内核时发生的链接错误?

如何修复证书中的主机名不匹配

如何修复“操作符不匹配[]”错误(C ++)

如何修复Laravel令牌不匹配CSRF错误

如何修复:RuntimeError:pyTorch中的大小不匹配

如何修复“ Unindent不匹配任何外部缩进”

如何修复不匹配的CSS网格单元格大小?

跟踪和反汇编与内核映像文件不匹配的Linux内核指令

如何修复apt-get更新“哈希总和不匹配”

Linux内核头文件以匹配当前内核

内核4.9模块不匹配

如何修复在非Ubuntu Linux内核4.18上运行的snap?

debootstrap 安装内核不匹配

如何修复 TFS 2013 中不匹配的用户 SID?

如何修复部分删除的损坏内核

修复不匹配的 vermagic Ubuntu 20.04 内核 5.4.0-42-generic

如何修复标签数量与样本数量不匹配的问题?

如何修复 C++ 中的“与 operator+ 不匹配”?

Windows 上带有 Docker 的 Linux 内核与 WSL Linux 内核不匹配

如何修复这个 Haskell 查找函数类型不匹配?