几乎所有结构都是内核中不完整类型的原因可能是什么

时间:2016-07-04 12:59:50

标签: c linux-kernel typedef

我出于某种原因为内核移植了一些功能,我遇到了大量的错误消息。其中大部分是我修复过的。

我主要处理头文件以根据我的需要调整它们。获取以下大约92条错误消息:

include/linux/dax.h:66:26: error: dereferencing pointer to incomplete type include/linux/highmem.h:67:18: error: dereferencing pointer to incomplete type include/linux/pagemap.h:66:28: error: dereferencing pointer to incomplete type include/linux/backing-dev-defs.h:191:22: error: dereferencing pointer to incomplete type include/linux/writeback.h:217:13: error: dereferencing pointer to incomplete type include/linux/blkdev.h:972:32: error: dereferencing pointer to incomplete type include/linux/fsnotify_backend.h:317:13: error: dereferencing pointer to incomplete type include/linux/fsnotify.h:218:12: error: dereferencing pointer to incomplete type include/linux/fs.h:776:18: error: dereferencing pointer to incomplete type include/linux/backing-dev.h:66:45: error: dereferencing pointer to incomplete type

关于如何修复它而不重写再次加载功能的任何原型? 这些头文件中有很多结构用法。例如:

struct page;

0 个答案:

没有答案