Fix checkpatch.pl warnings: WARNING: Missing a blank line after declarations Signed-off-by: Jakub Kunert <kuba.kunert@xxxxxxxxx> --- kernel/cgroup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 3e1e112..9e248bc 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1688,6 +1688,7 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) /* Must match [\w.-]+ */ for (i = 0; i < strlen(name); i++) { char c = name[i]; + if (isalnum(c)) continue; if ((c == '.') || (c == '-') || (c == '_')) @@ -3228,11 +3229,13 @@ static ssize_t cgroup_file_write(struct kernfs_open_file *of, char *buf, if (cft->write_u64) { unsigned long long v; + ret = kstrtoull(buf, 0, &v); if (!ret) ret = cft->write_u64(css, cft, v); } else if (cft->write_s64) { long long v; + ret = kstrtoll(buf, 0, &v); if (!ret) ret = cft->write_s64(css, cft, v); @@ -4493,6 +4496,7 @@ static void *cgroup_pidlist_start(struct seq_file *s, loff_t *pos) while (index < end) { int mid = (index + end) / 2; + if (cgroup_pid_fry(cgrp, l->list[mid]) == pid) { index = mid; break; @@ -5520,6 +5524,7 @@ static void **subsys_canfork_priv_p(void *ss_priv[CGROUP_CANFORK_COUNT], int i) static void *subsys_canfork_priv(void *ss_priv[CGROUP_CANFORK_COUNT], int i) { void **private = subsys_canfork_priv_p(ss_priv, i); + return private ? *private : NULL; } -- 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