提交 bf95ee84 编写于 作者: T Tang Yizhou 提交者: Yang Yingliang

share_pool: Eliminate compiler warning for atomic64_t in arm32

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI
CVE: NA

-------------------------------------------------

atomic64_t is type long in arm64, and type long long in arm32.
So use %lld to print.
Signed-off-by: NTang Yizhou <tangyizhou@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 f2abc4ad
......@@ -489,9 +489,9 @@ static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask)
if (!stat)
pr_cont("%-9c %-9c ", '-', '-');
else {
pr_cont("%-9ld %-9ld ", /* byte to KB */
atomic64_read(&stat->alloc_size) >> 10,
atomic64_read(&stat->k2u_size) >> 10);
pr_cont("%-9lld %-9lld ", /* byte to KB */
(long long)atomic64_read(&stat->alloc_size) >> 10,
(long long)atomic64_read(&stat->k2u_size) >> 10);
sp_proc_stat_drop(stat);
}
pr_cont("%8ld %8lu %5hd %s\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册