resource cgroups: remove bogus cast
PATCH 1/1 resource cgroups: remove bogus cast
From: Davidlohr Bueso <[email protected]>
The memparse() function already accepts const char * as the parsing string.
--- kernel/res_counter.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/res_counter.c +1 -2
@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,return 0 ; } -/* FIXME - make memparse() take const char* args */ - *res =memparse ((char *)buf, &end); + *res =memparse (buf, &end);if (*end !='\0' )return -EINVAL ;
Signature · 1 line
1.7.4.1
ping?
Quoted 14 lines · Davidlohr Bueso
From: Davidlohr Bueso <dave-mXXj517/[email protected]>
The
memparse()function already accepts const char * as the parsing string.Signed-off-by Davidlohr Bueso <dave-mXXj517/[email protected]>--- kernel/res_counter.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)kernel/res_counter.c +0
-0
kernel/res_counter.c int res_counter_memparse_write_strategy(const char *buf, · line 165
Quoted 9 lines
kernel/res_counter.c +1
-2@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,return 0 ; } -/* FIXME - make memparse() take const char* args */ - *res =memparse ((char *)buf, &end); + *res =memparse (buf, &end);if (*end !='\0' )return -EINVAL ;
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
ping?
Quoted 23 lines · Davidlohr Bueso
From: Davidlohr Bueso <dave-mXXj517/[email protected]>
The
memparse()function already accepts const char * as the parsing string.Signed-off-by Davidlohr Bueso <dave-mXXj517/[email protected]>--- kernel/res_counter.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)kernel/res_counter.c +1
-2@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,return 0 ; } -/* FIXME - make memparse() take const char* args */ - *res =memparse ((char *)buf, &end); + *res =memparse (buf, &end);if (*end !='\0' )return -EINVAL ;
Quoted 5 lines · Davidlohr Bueso
From: Davidlohr Bueso <dave-mXXj517/[email protected]>
The
memparse()function already accepts const char * as the parsing string.Signed-off-by Davidlohr Bueso <dave-mXXj517/[email protected]>
Quoted 18 lines
--- kernel/res_counter.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)kernel/res_counter.c +1
-2@@ -159,8 +159,7 @@ int res_counter_memparse_write_strategy(const char *buf,return 0 ; } -/* FIXME - make memparse() take const char* args */ - *res =memparse ((char *)buf, &end); + *res =memparse (buf, &end);if (*end !='\0' )return -EINVAL ;
Quoted 5 lines · Davidlohr Bueso
From: Davidlohr Bueso <dave-mXXj517/[email protected]>
The
memparse()function already accepts const char * as the parsing string.Signed-off-by Davidlohr Bueso <dave-mXXj517/[email protected]>
Applied to cgroup/for-3.3 w/ Pavel's Acked-by. Li Zefan, I committed w/o your ack as the patch is trivial. Please scream if you aren't happy.
Thanks.
Signature · 5 lines
tejun -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Tejun Heo
AppliedQuoted 5 lines · Davidlohr Bueso
From: Davidlohr Bueso <dave-mXXj517/[email protected]>
The
memparse()function already accepts const char * as the parsing string.Signed-off-by Davidlohr Bueso <dave-mXXj517/[email protected]>
Applied to cgroup/for-3.3 w/ Pavel's Acked-by. Li Zefan, I committed w/o your ack as the patch is trivial. Please scream if you aren't happy.
Thanks.
Signature · 1 line
tejun