lkml.org 
[lkml]   [2014]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] cgroup: Provide empty definition of task_cgroup_path()
Date
Compilation with !CONFIG_CGROUP fails for task_cgroup_path() user. So
provide an emtpy definition.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
---
include/linux/cgroup.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 9450f02..727728c 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -869,6 +869,12 @@ static inline int cgroup_attach_task_all(struct task_struct *from,
return 0;
}

+static inline int
+task_cgroup_path(struct task_struct *task, char *buf, size_t buflen)
+{
+ return 0;
+}
+
#endif /* !CONFIG_CGROUPS */

#endif /* _LINUX_CGROUP_H */
--
1.8.5.3


\
 
 \ /
  Last update: 2014-03-12 22:21    [W:0.114 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site