c - What can be reason behind of almost all structures being incomplete type in Kernel -


i'm porting functionality kernel whatever reason , came across loads of error messages. of i've fixed.

i'm working on header files tune them needs. getting 92 of following error messages:

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

any protip on how fix without rewriting yet again loads of functionality? there's lot of structures usage in headers files. examples :

struct page; 


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -