在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关闭时,也不需要定义该函数。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论