aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-03-19 10:23:54 -0400
committerTejun Heo <tj@kernel.org>2014-03-19 10:23:54 -0400
commit4d3bb511b5f9980fc3e9ae5939ebc475b231d3fc (patch)
tree1446858f230b5e9a3d0b3f23dd5bc9bc307ef411 /kernel
parent3dd06ffa9df99aa88f4e01eaa0c9d3cb362430b0 (diff)
cgroup: drop const from @buffer of cftype->write_string()
cftype->write_string() just passes on the writeable buffer from kernfs and there's no reason to add const restriction on the buffer. The only thing const achieves is unnecessarily complicating parsing of the buffer. Drop const from @buffer. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Cc: Daniel Borkmann <dborkman@redhat.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Balbir Singh <bsingharora@gmail.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c2
-rw-r--r--kernel/cgroup_freezer.c2
-rw-r--r--kernel/cpuset.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 60ea16058c42..f5754910e80b 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2143,7 +2143,7 @@ static int cgroup_procs_write(struct cgroup_subsys_state *css,
2143} 2143}
2144 2144
2145static int cgroup_release_agent_write(struct cgroup_subsys_state *css, 2145static int cgroup_release_agent_write(struct cgroup_subsys_state *css,
2146 struct cftype *cft, const char *buffer) 2146 struct cftype *cft, char *buffer)
2147{ 2147{
2148 struct cgroup_root *root = css->cgroup->root; 2148 struct cgroup_root *root = css->cgroup->root;
2149 2149
diff --git a/kernel/cgroup_freezer.c b/kernel/cgroup_freezer.c
index 2ea98b216bff..2bc4a2256444 100644
--- a/kernel/cgroup_freezer.c
+++ b/kernel/cgroup_freezer.c
@@ -442,7 +442,7 @@ static void freezer_change_state(struct freezer *freezer, bool freeze)
442} 442}
443 443
444static int freezer_write(struct cgroup_subsys_state *css, struct cftype *cft, 444static int freezer_write(struct cgroup_subsys_state *css, struct cftype *cft,
445 const char *buffer) 445 char *buffer)
446{ 446{
447 bool freeze; 447 bool freeze;
448 448
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 8d5324583aa4..efbf9baf77ec 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -1610,7 +1610,7 @@ out_unlock:
1610 * Common handling for a write to a "cpus" or "mems" file. 1610 * Common handling for a write to a "cpus" or "mems" file.
1611 */ 1611 */
1612static int cpuset_write_resmask(struct cgroup_subsys_state *css, 1612static int cpuset_write_resmask(struct cgroup_subsys_state *css,
1613 struct cftype *cft, const char *buf) 1613 struct cftype *cft, char *buf)
1614{ 1614{
1615 struct cpuset *cs = css_cs(css); 1615 struct cpuset *cs = css_cs(css);
1616 struct cpuset *trialcs; 1616 struct cpuset *trialcs;