|
@@ -66,8 +66,20 @@
|
|
|
|
|
|
struct cgroup;
|
|
|
struct cgroup_subsys;
|
|
|
+#ifdef CONFIG_NET
|
|
|
int mem_cgroup_sockets_init(struct cgroup *cgrp, struct cgroup_subsys *ss);
|
|
|
void mem_cgroup_sockets_destroy(struct cgroup *cgrp, struct cgroup_subsys *ss);
|
|
|
+#else
|
|
|
+static inline
|
|
|
+int mem_cgroup_sockets_init(struct cgroup *cgrp, struct cgroup_subsys *ss)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+static inline
|
|
|
+void mem_cgroup_sockets_destroy(struct cgroup *cgrp, struct cgroup_subsys *ss)
|
|
|
+{
|
|
|
+}
|
|
|
+#endif
|
|
|
/*
|
|
|
* This structure really needs to be cleaned up.
|
|
|
* Most of it is for TCP, and not used by any of
|