mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
tcp_memcontrol: Forward declare cgroup_subsys and mem_cgroup stucts
In file included from net/ipv4/tcp_ipv4.c:77 (and many more): include/net/tcp_memcontrol.h:5: warning: ‘struct cgroup_subsys’ declared inside parameter list include/net/tcp_memcontrol.h:5: warning: its scope is only this definition or declaration, which is probably not what you want Add forward declarations for all used structures to fix this. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
78c5b2c667
commit
cdb00777ff
@ -1,6 +1,9 @@
|
|||||||
#ifndef _TCP_MEMCG_H
|
#ifndef _TCP_MEMCG_H
|
||||||
#define _TCP_MEMCG_H
|
#define _TCP_MEMCG_H
|
||||||
|
|
||||||
|
struct cgroup_subsys;
|
||||||
|
struct mem_cgroup;
|
||||||
|
|
||||||
int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss);
|
int tcp_init_cgroup(struct mem_cgroup *memcg, struct cgroup_subsys *ss);
|
||||||
void tcp_destroy_cgroup(struct mem_cgroup *memcg);
|
void tcp_destroy_cgroup(struct mem_cgroup *memcg);
|
||||||
#endif /* _TCP_MEMCG_H */
|
#endif /* _TCP_MEMCG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user