Skip to contentSkip to conversation

cgroup.h: remove some functions that are now gone

PATCH Applied Greg KH 3 participants 7 messages May 3, 2013 – May 14, 2013 1 message not in the archive cgroup

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 1/1 cgroup.h: remove some functions that are now gone

From: Greg KH <[email protected]>

cgroup_lock() and cgroup_unlock() are now no longer exported, so fix cgroup.h to not declare them if CONFIG_CGROUPS is not enabled.

include/linux/cgroup.h +0 -2
index 3bff9ce..e2ab34d 100644
@@ -837,8 +837,6 @@ static inline void cgroup_fork(struct task_struct *p) {}
 static inline void cgroup_post_fork(struct task_struct *p) {}
 static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
 
-static inline void cgroup_lock(void) {}
-static inline void cgroup_unlock(void) {}
 static inline int cgroupstats_build(struct cgroupstats *stats,
 					struct dentry *dentry)
 {

A message that is not in the archive (sent off-list or not yet received): [email protected]

Acked-by
#2 lore raw
Quoted 6 lines · Greg KH

From: Greg KH <[email protected]>

cgroup_lock() and cgroup_unlock() are now no longer exported, so fix cgroup.h to not declare them if CONFIG_CGROUPS is not enabled.

Quoted 15 lines
include/linux/cgroup.h +0 -2
index 3bff9ce..e2ab34d 100644
@@ -837,8 +837,6 @@ static inline void cgroup_fork(struct task_struct *p) {}
 static inline void cgroup_post_fork(struct task_struct *p) {}
 static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
 
-static inline void cgroup_lock(void) {}
-static inline void cgroup_unlock(void) {}
 static inline int cgroupstats_build(struct cgroupstats *stats,
 					struct dentry *dentry)
 {
Acked-by
#3 lore raw
In reply to a message not in the archive
Quoted 6 lines · Greg KH

From: Greg KH <[email protected]>

cgroup_lock() and cgroup_unlock() are now no longer exported, so fix cgroup.h to not declare them if CONFIG_CGROUPS is not enabled.

Quoted 15 lines
include/linux/cgroup.h +0 -2
index 3bff9ce..e2ab34d 100644
@@ -837,8 +837,6 @@ static inline void cgroup_fork(struct task_struct *p) {}
 static inline void cgroup_post_fork(struct task_struct *p) {}
 static inline void cgroup_exit(struct task_struct *p, int callbacks) {}
 
-static inline void cgroup_lock(void) {}
-static inline void cgroup_unlock(void) {}
 static inline int cgroupstats_build(struct cgroupstats *stats,
 					struct dentry *dentry)
 {