Skip to contentSkip to conversation

cgroup: insert space before assignment for codingstyle

PATCH New SeongJae Park 2 participants 3 messages Jan 18, 2014 1 message not in the archive cgroup

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cgroup: insert space before assignment for codingstyle

---
 kernel/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/cgroup.c +1 -1
index 9ed68a3..4e47e28 100644
@@ -2127,7 +2127,7 @@ retry_find_task:
 		tsk = find_task_by_vpid(pid);
 		if (!tsk) {
 			rcu_read_unlock();
-			ret= -ESRCH;
+			ret = -ESRCH;
 			goto out_unlock_cgroup;
 		}
 		/*
Signature · 1 line
1.8.3.2

A message that is not in the archive (sent off-list or not yet received): 1390031808-31818-1-git-send-email-sj38.park-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 2/2 cgroup: place newline before function opening brace

---
 kernel/cgroup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/cgroup.c +2 -1
index 4e47e28..e2f46ba 100644
@@ -1679,7 +1679,8 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
 	return ERR_PTR(ret);
 }
 
-static void cgroup_kill_sb(struct super_block *sb) {
+static void cgroup_kill_sb(struct super_block *sb)
+{
 	struct cgroupfs_root *root = sb->s_fs_info;
 	struct cgroup *cgrp = &root->top_cgroup;
 	struct cgrp_cset_link *link, *tmp_link;
Signature · 1 line
1.8.3.2
#3 lore raw

PATCH 1/1 cgroup: trivial style updates

In reply to a message not in the archive

Merged the two into one patch and applied to cgroup/for-3.14.

Thanks.
------ 8< ------
From dd4b0a4676907481256d16d5de0851b315a6f22c Mon Sep 17 00:00:00 2001
From: SeongJae Park <[email protected]>
Date: Sat, 18 Jan 2014 16:56:47 +0900

* Place newline before function opening brace in cgroup_kill_sb().

* Insert space before assignment in attach_task_by_pid()

tj: merged two patches into one.

---
 kernel/cgroup.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/cgroup.c +3 -2
index 7030f04..680e2be 100644
@@ -1669,7 +1669,8 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
 	return ERR_PTR(ret);
 }
 
-static void cgroup_kill_sb(struct super_block *sb) {
+static void cgroup_kill_sb(struct super_block *sb)
+{
 	struct cgroupfs_root *root = sb->s_fs_info;
 	struct cgroup *cgrp = &root->top_cgroup;
 	struct cgrp_cset_link *link, *tmp_link;
@@ -2117,7 +2118,7 @@ retry_find_task:
 		tsk = find_task_by_vpid(pid);
 		if (!tsk) {
 			rcu_read_unlock();
-			ret= -ESRCH;
+			ret = -ESRCH;
 			goto out_unlock_cgroup;
 		}
 		/*
Signature · 1 line
1.8.4.2