428 Star 1.6K Fork 1.6K

GVPopenEuler/kernel

 / 详情

【OLK-5.10】修复在不使能CONFIG_CGROUPS时的一个编译告警

已完成
任务
创建于  
2022-05-12 19:02

在CONFIG_CGROUPS关闭时编译内存,会出现如下编译告警:
In file included from ./include/linux/memcontrol.h:25,
from ./include/net/sock.h:53,
from ./include/linux/tcp.h:19,
from ./include/net/tcp.h:20,
from ./include/linux/netfilter_ipv6.h:11,
from net/netfilter/nf_queue.c:14:
./include/linux/dynamic_hugetlb.h:115:47: warning: ‘struct cftype’ declared inside parameter list will not be visible outside of this definition or declaration
115 | static inline bool dhugetlb_hide_files(struct cftype *cft)
| ^~~~~~

在CONFIG_CGROUPS关闭时,struct cftype是没有定义的,但函数dhugetlb_hide_files的第一个变量使用了该结构体,此时该函数没有任何调用点。事实上,在CONFIG_CGROUPS关闭时,也不需要定义该函数。

评论 (1)

刘世鑫 创建了任务 3年前
openeuler-ci-bot 添加了
 
sig/Kernel
标签
3年前
zhengzengkai 通过合并 Pull Request !631: release 5.10.0-93.0.0任务状态待办的 修改为已完成 3年前

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
分支
参与者(2)
5329419 openeuler ci bot 1632792936 刘世鑫-liushixin2
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助