EXPORT_SYMBOL warning data type

来源:互联网 发布:数据库统计选课门数 编辑:程序博客网 时间:2024/05/23 15:17

When using 'EXPORT_SYMBOL' to export a funtion, it reports warning like this:

warning: data definition has no type or storage class

warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'

warning: parameter names (without types) in function declaration

 

Include module.h to solve it .

#include <linux/module.h>

 

0 0