dereferencing pointer to incomplete type ‘struct task_struct’
这必须记录一下
先贴错误
./arch/x86/include/asm/uaccess.h:32:9: error: dereferencing pointer to incomplete type ‘struct task_struct’
current->thread.addr_limit = fs;
在编译自己写的module的时候,出现这个错误,有点摸不着头脑
根据字面意思,好像 struct task_struct 这个结构体没有定义thread字段一样,然后果断在源码中查找这个
原创
2021-05-20 10:20:35 ·
1821 阅读 ·
1 评论