在Linux内核模块开发中,遇到error: modpost: missing module_license()错误通常意味着你的内核模块缺少module_license()声明。这个函数用于声明模块的许可证类型,是Linux内核模块加载器检查的一部分,以确保模块的合法性。 1. module_license()函数的缺失原因 module_license()函数缺失的原因通常是因为开发者在编写内核模...
# make -C /lib/modules/$(uname -r)/build M=/root/testmodule modules make: Entering directory '/usr/src/kernels/5.14.0-1.3.1.el9.x86_64' CC [M] /root/testmodule/test.o MODPOST /root/testmodule/Module.symvers ERROR: modpost: missing MODULE_LICENSE() in /root/testmodule/test.o mak...
| ERROR: modpost: missing MODULE_LICENSE() in /home/lab3/YY/imx-yocto-bsp/build/tmp/work/imx8mp_lpddr4_evk-poky-linux/kernel-module-isp-vvcam/4.2.2.24.0-r0/git/vvcam/v4l2/video/vvcam-video.o | make[4]: *** [/home/lab3/YY/imx-yocto-bsp/build/tm...
If set the CONFIG_FB=m by using make menuconfig, an error occurred as following: ERROR: modpost: missing MODULE_LICENSE() in drivers/video/fbdev/mxc/mxc_edid.o make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 If set the CONFIG_FB=y, the error disappeared. Is it...
ERROR: modpost: missing MODULE_LICENSE() in drivers/video/fbdev/mxc/mxc_edid.o make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 If set the CONFIG_FB=y, the error disappeared. Is it because CONFIG_FB must be set to y? or if there's any bug?