Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
bee3d971
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
8 个月 前同步成功
通知
450
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
bee3d971
编写于
6月 13, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 13, 2022
浏览文件
操作
浏览文件
下载
差异文件
!890 fix:修复llvm编译告警
Merge pull request !890 from Zhaotianyu/0601llvm_apt
上级
398f4a6a
de24efad
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
14 deletion
+12
-14
kernel/base/BUILD.gn
kernel/base/BUILD.gn
+5
-0
kernel/base/Makefile
kernel/base/Makefile
+1
-1
kernel/base/mp/los_lockdep.c
kernel/base/mp/los_lockdep.c
+0
-8
lib/libc/musl/BUILD.gn
lib/libc/musl/BUILD.gn
+3
-2
lib/libc/musl/Makefile
lib/libc/musl/Makefile
+3
-3
未找到文件。
kernel/base/BUILD.gn
浏览文件 @
bee3d971
...
@@ -90,8 +90,13 @@ kernel_module(module_name) {
...
@@ -90,8 +90,13 @@ kernel_module(module_name) {
}
}
public_configs = [ ":public" ]
public_configs = [ ":public" ]
configs += [ ":private" ]
}
}
config("public") {
config("public") {
include_dirs = [ "include" ]
include_dirs = [ "include" ]
}
}
config("private") {
cflags = [ "-Wno-frame-address" ]
}
kernel/base/Makefile
浏览文件 @
bee3d971
...
@@ -40,6 +40,6 @@ LOCAL_SRCS := $(wildcard ipc/*.c) $(wildcard core/*.c) $(wildcard mem/membox/*.
...
@@ -40,6 +40,6 @@ LOCAL_SRCS := $(wildcard ipc/*.c) $(wildcard core/*.c) $(wildcard mem/membox/*.
$(
wildcard
sched/
*
.c
)
\
$(
wildcard
sched/
*
.c
)
\
$(
wildcard
vm/
*
.c
)
$(
wildcard
vm/
*
.c
)
LOCAL_FLAGS
:=
$(LITEOS_CFLAGS_INTERWORK)
LOCAL_FLAGS
:=
$(LITEOS_CFLAGS_INTERWORK)
-Wno-frame-address
include
$(MODULE)
include
$(MODULE)
kernel/base/mp/los_lockdep.c
浏览文件 @
bee3d971
...
@@ -190,11 +190,7 @@ VOID OsLockDepCheckIn(SPIN_LOCK_S *lock)
...
@@ -190,11 +190,7 @@ VOID OsLockDepCheckIn(SPIN_LOCK_S *lock)
{
{
UINT32
intSave
;
UINT32
intSave
;
enum
LockDepErrType
checkResult
=
LOCKDEP_SUCCESS
;
enum
LockDepErrType
checkResult
=
LOCKDEP_SUCCESS
;
#ifdef LOSCFG_COMPILER_CLANG_LLVM
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
1
);
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
1
);
#else
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
0
);
#endif
LosTaskCB
*
current
=
OsCurrTaskGet
();
LosTaskCB
*
current
=
OsCurrTaskGet
();
LockDep
*
lockDep
=
&
current
->
lockDep
;
LockDep
*
lockDep
=
&
current
->
lockDep
;
LosTaskCB
*
lockOwner
=
NULL
;
LosTaskCB
*
lockOwner
=
NULL
;
...
@@ -276,11 +272,7 @@ VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
...
@@ -276,11 +272,7 @@ VOID OsLockDepCheckOut(SPIN_LOCK_S *lock)
UINT32
intSave
;
UINT32
intSave
;
INT32
depth
;
INT32
depth
;
enum
LockDepErrType
checkResult
=
LOCKDEP_SUCCESS
;
enum
LockDepErrType
checkResult
=
LOCKDEP_SUCCESS
;
#ifdef LOSCFG_COMPILER_CLANG_LLVM
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
1
);
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
1
);
#else
VOID
*
requestAddr
=
(
VOID
*
)
__builtin_return_address
(
0
);
#endif
LosTaskCB
*
current
=
OsCurrTaskGet
();
LosTaskCB
*
current
=
OsCurrTaskGet
();
LosTaskCB
*
owner
=
NULL
;
LosTaskCB
*
owner
=
NULL
;
LockDep
*
lockDep
=
NULL
;
LockDep
*
lockDep
=
NULL
;
...
...
lib/libc/musl/BUILD.gn
浏览文件 @
bee3d971
...
@@ -103,13 +103,13 @@ config("private") {
...
@@ -103,13 +103,13 @@ config("private") {
if (defined(LOSCFG_COMPILER_CLANG_LLVM)) {
if (defined(LOSCFG_COMPILER_CLANG_LLVM)) {
cflags = [
cflags = [
"-Wno-char-subscripts",
"-Wno-char-subscripts",
"-Wno-unknown-pragmas",
"-Wno-ignored-pragmas",
"-Wno-strict-prototypes",
]
]
} else {
} else {
cflags = [
cflags = [
"-frounding-math",
"-frounding-math",
"-Wno-unused-but-set-variable",
"-Wno-unused-but-set-variable",
"-Wno-unknown-pragmas",
]
]
}
}
...
@@ -117,5 +117,6 @@ config("private") {
...
@@ -117,5 +117,6 @@ config("private") {
"-Wno-shift-op-parentheses",
"-Wno-shift-op-parentheses",
"-Wno-logical-op-parentheses",
"-Wno-logical-op-parentheses",
"-Wno-bitwise-op-parentheses",
"-Wno-bitwise-op-parentheses",
"-Wno-unknown-pragmas",
]
]
}
}
lib/libc/musl/Makefile
浏览文件 @
bee3d971
...
@@ -59,10 +59,10 @@ LOCAL_INCLUDE += $(addprefix -I$(MUSLPORTINGDIR)/, src/include src/internal)
...
@@ -59,10 +59,10 @@ LOCAL_INCLUDE += $(addprefix -I$(MUSLPORTINGDIR)/, src/include src/internal)
LOCAL_FLAGS
:=
$(LOCAL_INCLUDE)
$(LOCAL_CMACRO)
LOCAL_FLAGS
:=
$(LOCAL_INCLUDE)
$(LOCAL_CMACRO)
ifeq
($(LOSCFG_COMPILER_CLANG_LLVM), y)
ifeq
($(LOSCFG_COMPILER_CLANG_LLVM), y)
LOCAL_FLAGS
+=
-Wno-char-subscripts
-Wno-
unknown-pragma
s
LOCAL_FLAGS
+=
-Wno-char-subscripts
-Wno-
ignored-pragmas
-Wno-strict-prototype
s
else
else
LOCAL_FLAGS
+=
-frounding-math
-Wno-unused-but-set-variable
-Wno-unknown-pragmas
LOCAL_FLAGS
+=
-frounding-math
-Wno-unused-but-set-variable
endif
endif
LOCAL_FLAGS
+=
-Wno-shift-op-parentheses
-Wno-logical-op-parentheses
-Wno-bitwise-op-parentheses
LOCAL_FLAGS
+=
-Wno-shift-op-parentheses
-Wno-logical-op-parentheses
-Wno-bitwise-op-parentheses
-Wno-unknown-pragmas
include
$(MODULE)
include
$(MODULE)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录