perf 编译失败
2024-10-12 11:01:53
linux-6.0-rc2 :
linux-6.0-rc2/tools/include/asm/../../arch/x86/include/asm/rmwcc.h:7:9: error: implicit declaration of function ‘asm_volatile_goto’ [-Werror=implicit-function-declaration]
7 | asm_volatile_goto (fullop "; j" cc " %l[cc_label]" \
| ^~~~~~~~~~~~~~~~~
需要何如patch:
https://lkml.org/lkml/2022/8/22/372
> Fixes: a0a12c3ed057 ("asm goto: eradicate CC_HAS_ASM_GOTO")
> Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
> ---
> tools/include/linux/compiler_types.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tools/include/linux/compiler_types.h b/tools/include/linux/compiler_types.h
> index 24ae3054f304..1bdd834bdd57 100644
> --- a/tools/include/linux/compiler_types.h
> +++ b/tools/include/linux/compiler_types.h
> @@ -36,4 +36,8 @@
> #include <linux/compiler-gcc.h>
> #endif
>
> +#ifndef asm_volatile_goto
> +#define asm_volatile_goto(x...) asm goto(x)
> +#endif
最新文章
- .NetCore中的日志(1)日志组件解析
- Django-跨站请求
- C++虚函数、虚继承、对象内存模型(转)
- Hadoop及其相关组件简介
- [转帖]DAS、NAS、SAN、iSCSI 存储方案概述
- Build Up Your Own Lightweight Workspace
- Codeforces GYM 100114 B. Island 水题
- 理解WebKit和Chromium: 调试Android系统上的Chromium
- 在SQL 中生成JSON数据
- JavaScript基础学习(五)&mdash;其他引用类型
- Shiro+easyUI+SpringMVC实现登录认证
- android studio 运行项目时waiting for target device to come online
- P2068 统计和(树状数组模板)
- [elk]elasticsearch dsl语句
- 伪造请求IP
- MySQL事物系列:1:事物简介
- iis 如何设置http访问转向https
- 【hdoj_1865】1sting(递推+大数)
- 20145313张雪纯 《Java程序设计》第2周学习总结
- 第9课:备份mysql数据库、重写父类、unittest框架、多线程