This patch fixes the checkpatch.pl error: ERROR: space prohibited before open square bracket Signed-off-by: Jakub Kunert <kuba.kunert@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html