Re: [PATCH] cma: use unsigned type for count argument

2012-12-26 Thread Michal Nazarewicz
> On Sat, 22 Dec 2012, Michal Nazarewicz wrote: >> So I think just adding the following, should be sufficient to make >> everyone happy: >> >> diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c >> index e34e3e0..e91743b 100644 >> --- a/drivers/base/dma-contiguous.c >> +++ b

Re: [PATCH] cma: use unsigned type for count argument

2012-12-26 Thread David Rientjes
On Sat, 22 Dec 2012, Michal Nazarewicz wrote: > So I think just adding the following, should be sufficient to make > everyone happy: > > diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c > index e34e3e0..e91743b 100644 > --- a/drivers/base/dma-contiguous.c > +++ b/drivers

Re: [PATCH] cma: use unsigned type for count argument

2012-12-22 Thread Michal Nazarewicz
On Fri, Dec 21 2012, David Rientjes wrote: > > Specifying negative size of buffer makes no sense and thus this commit > > changes the type of the count argument to unsigned. > > > > --- a/arch/arm/mm/dma-mapping.c > > +++ b/arch/arm/mm/dma-mapping.c > > @@ -1038,9 +1038,9 @@ static struct page **_

Re: [PATCH] cma: use unsigned type for count argument

2012-12-20 Thread David Rientjes
On Thu, 20 Dec 2012, Andrew Morton wrote: > > Specifying negative size of buffer makes no sense and thus this commit > > changes the type of the count argument to unsigned. > > > > --- a/arch/arm/mm/dma-mapping.c > > +++ b/arch/arm/mm/dma-mapping.c > > @@ -1038,9 +1038,9 @@ static struct page **_

Re: [PATCH] cma: use unsigned type for count argument

2012-12-20 Thread Andrew Morton
On Wed, 19 Dec 2012 18:44:40 +0100 Michal Nazarewicz wrote: > From: Michal Nazarewicz > > Specifying negative size of buffer makes no sense and thus this commit > changes the type of the count argument to unsigned. > > --- a/arch/arm/mm/dma-mapping.c > +++ b/arch/arm/mm/dma-mapping.c > @@ -103

[PATCH] cma: use unsigned type for count argument

2012-12-19 Thread Michal Nazarewicz
From: Michal Nazarewicz Specifying negative size of buffer makes no sense and thus this commit changes the type of the count argument to unsigned. Signed-off-by: Michal Nazarewicz --- arch/arm/mm/dma-mapping.c | 12 ++-- drivers/base/dma-contiguous.c |6 +++--- include/linu