Linux驱动程序开发:未知类型名称`__no_sanitize_or_inline`在文件`linux/init.h`中in

发布于 2025-02-02 20:38:24 字数 282 浏览 2 评论 0原文

我环顾了堆栈溢出,没有类似主题的答案最终帮助了我。似乎没有其他人遇到的随机问题。我需要的是要放入的compile_flags.txt,因此我停止遇到该类型错误,实际上可以使用Clangd获得Intellisense,该模块的编译正常。谁能帮忙?

我当前的compile_flags.txt看起来像这样:

-Iheaders
-I/usr/src/kernels/5.17.11-300.fc36.x86_64/include
-Wall
-O2
-std=gnu17

谢谢

I've looked around Stack Overflow and none of the answers to similar topics ended up helping me; it seems like such a random issue no one else has. What I need is the compile_flags.txt to put in so I stop getting that type error and can actually get intellisense with clangd, compilation of the module works fine. Can anyone help?

My current compile_flags.txt looks like this:

-Iheaders
-I/usr/src/kernels/5.17.11-300.fc36.x86_64/include
-Wall
-O2
-std=gnu17

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文