include/net/tcp_memcontrol.h:4:54: warning: âstruct cgroup_subsysâ declared inside parameter list

From: Borislav Petkov
Date: Sat Jan 16 2016 - 11:49:34 EST


Moin Johannes,

you're the last touching net/ipv4/tcp_memcontrol.c, so here you go :-P

In file included from net/ipv4/tcp_ipv4.c:76:0:
include/net/tcp_memcontrol.h:4:54: warning: âstruct cgroup_subsysâ declared inside parameter list
int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss);
^
include/net/tcp_memcontrol.h:4:54: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from net/ipv6/tcp_ipv6.c:64:0:
include/net/tcp_memcontrol.h:4:54: warning: âstruct cgroup_subsysâ declared inside parameter list
int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss);
^
include/net/tcp_memcontrol.h:4:54: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from net/ipv4/sysctl_net_ipv4.c:27:0:
include/net/tcp_memcontrol.h:4:54: warning: âstruct cgroup_subsysâ declared inside parameter list
int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss);
^
include/net/tcp_memcontrol.h:4:54: warning: its scope is only this definition or declaration, which is probably not what you want

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.