summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-01-17 10:30:37 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-01-17 17:02:37 (GMT)
commitcdb00777ffadb15b06627dd6c3f716a02f6b36e8 (patch)
tree8107960cc70708011eb45eba9b1030d72f53984b
parent78c5b2c66758f2dad354fcc59c529954e07f078e (diff)
downloadlinux-cdb00777ffadb15b06627dd6c3f716a02f6b36e8.tar.xz
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>
-rw-r--r--include/net/tcp_memcontrol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/tcp_memcontrol.h b/include/net/tcp_memcontrol.h
index 3a17b16..01ff7c6 100644
--- a/include/net/tcp_memcontrol.h
+++ b/include/net/tcp_memcontrol.h
@@ -1,6 +1,9 @@
#ifndef _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);
void tcp_destroy_cgroup(struct mem_cgroup *memcg);
#endif /* _TCP_MEMCG_H */