cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] cgroup: Remove prohibited white spaces
@ 2015-12-15 12:20 Jakub Kunert
       [not found] ` <1450182045-27480-1-git-send-email-kuba.kunert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jakub Kunert @ 2015-12-15 12:20 UTC (permalink / raw)
  To: tj-DgEjT+Ai2ygdnm+yROfE0A; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA, Jakub Kunert

This patch fixes the checkpatch.pl error:

ERROR: space prohibited before open square bracket

Signed-off-by: Jakub Kunert <kuba.kunert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 kernel/cgroup.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 470f653..d848888 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -131,14 +131,14 @@ static struct workqueue_struct *cgroup_destroy_wq;
 static struct workqueue_struct *cgroup_pidlist_destroy_wq;
 
 /* generate an array of cgroup subsystem pointers */
-#define SUBSYS(_x) [_x ## _cgrp_id] = &_x ## _cgrp_subsys,
+#define SUBSYS(_x)[_x ## _cgrp_id] = &_x ## _cgrp_subsys,
 static struct cgroup_subsys *cgroup_subsys[] = {
 #include <linux/cgroup_subsys.h>
 };
 #undef SUBSYS
 
 /* array of cgroup subsystem names */
-#define SUBSYS(_x) [_x ## _cgrp_id] = #_x,
+#define SUBSYS(_x)[_x ## _cgrp_id] = #_x,
 static const char *cgroup_subsys_name[] = {
 #include <linux/cgroup_subsys.h>
 };
@@ -153,13 +153,13 @@ static const char *cgroup_subsys_name[] = {
 #include <linux/cgroup_subsys.h>
 #undef SUBSYS
 
-#define SUBSYS(_x) [_x ## _cgrp_id] = &_x ## _cgrp_subsys_enabled_key,
+#define SUBSYS(_x)[_x ## _cgrp_id] = &_x ## _cgrp_subsys_enabled_key,
 static struct static_key_true *cgroup_subsys_enabled_key[] = {
 #include <linux/cgroup_subsys.h>
 };
 #undef SUBSYS
 
-#define SUBSYS(_x) [_x ## _cgrp_id] = &_x ## _cgrp_subsys_on_dfl_key,
+#define SUBSYS(_x)[_x ## _cgrp_id] = &_x ## _cgrp_subsys_on_dfl_key,
 static struct static_key_true *cgroup_subsys_on_dfl_key[] = {
 #include <linux/cgroup_subsys.h>
 };
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-12-16  1:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15 12:20 [PATCH 1/6] cgroup: Remove prohibited white spaces Jakub Kunert
     [not found] ` <1450182045-27480-1-git-send-email-kuba.kunert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-15 12:20   ` [PATCH 2/6] cgroup: Fix line length to 80 characters Jakub Kunert
     [not found]     ` <1450182045-27480-2-git-send-email-kuba.kunert-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-12-15 17:11       ` Tejun Heo
2015-12-15 12:20   ` [PATCH 3/6] cgroup: Fix trailing */ in block comments Jakub Kunert
2015-12-15 12:20   ` [PATCH 4/6] cgroup: Add blank lines after declarations Jakub Kunert
2015-12-15 12:20   ` [PATCH 5/6] cgroup: Replace printk(KERN_INFO) with pr_info() Jakub Kunert
2015-12-15 12:20   ` [PATCH 6/6] cgroup: Move constant to the right site of comparison Jakub Kunert
2015-12-15 17:06   ` [PATCH 1/6] cgroup: Remove prohibited white spaces Tejun Heo
2015-12-16  1:22   ` Zefan Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).