warning:implicit declaration of function解决方案

warning:implicit declaration of function解决方案

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的头文件

warning:implicit declaration of function解决方案

相关文章:

你感兴趣的文章:

标签云: