From mboxrd@z Thu Jan 1 00:00:00 1970 From: Davidlohr Bueso Subject: Re: [PATCH] resource cgroups: remove bogus cast Date: Wed, 07 Dec 2011 13:15:32 +0100 Message-ID: <1323260132.3318.0.camel@offbook> References: <1323119621.3244.1.camel@offbook> Reply-To: dave-mXXj517/zsQ@public.gmane.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1323119621.3244.1.camel@offbook> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Pavel Emelianov Cc: Tejun Heo , Li Zefan , lkml , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org ping? On Mon, 2011-12-05 at 22:13 +0100, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > The memparse() function already accepts const char * as the parsing string. > > Signed-off-by: Davidlohr Bueso > --- > kernel/res_counter.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/kernel/res_counter.c b/kernel/res_counter.c > index 34683ef..6d269cc 100644 > --- a/kernel/res_counter.c > +++ b/kernel/res_counter.c > @@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755664Ab1LGMPj (ORCPT ); Wed, 7 Dec 2011 07:15:39 -0500 Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81]:59863 "EHLO homiemail-a6.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755357Ab1LGMPi (ORCPT ); Wed, 7 Dec 2011 07:15:38 -0500 X-Greylist: delayed 140510 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Dec 2011 07:15:37 EST Subject: Re: [PATCH] resource cgroups: remove bogus cast From: Davidlohr Bueso Reply-To: dave@gnu.org To: Pavel Emelianov Cc: Tejun Heo , Li Zefan , lkml , containers@lists.linux-foundation.org, cgroups@vger.kernel.org In-Reply-To: <1323119621.3244.1.camel@offbook> References: <1323119621.3244.1.camel@offbook> Content-Type: text/plain; charset="UTF-8" Organization: GNU Date: Wed, 07 Dec 2011 13:15:32 +0100 Message-ID: <1323260132.3318.0.camel@offbook> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? On Mon, 2011-12-05 at 22:13 +0100, Davidlohr Bueso wrote: > From: Davidlohr Bueso > > The memparse() function already accepts const char * as the parsing string. > > Signed-off-by: Davidlohr Bueso > --- > kernel/res_counter.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/kernel/res_counter.c b/kernel/res_counter.c > index 34683ef..6d269cc 100644 > --- a/kernel/res_counter.c > +++ b/kernel/res_counter.c > @@ -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; >