日期:2014-05-16  浏览次数:20917 次

warning:implicit declaration of function
我做简单的helloworld   内核模块,

file1.c   :init_module()
file2.c   :cleanup_module()

每个文件里面都include <linux/kernel.h>

虽然make之后能加载模块,但是还是会提示说:

implicit   declaration   of   function   'printk '

不知道是为什么????

------解决方案--------------------
隐含的函数声明

没有包含printk的头文件