Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-25 Thread Greg KH
On Fri, Oct 25, 2013 at 05:59:56AM -0700, Olof Johansson wrote: > On Sun, Oct 20, 2013 at 8:22 AM, Joe Perches wrote: > > On Sat, 2013-10-19 at 19:57 -0700, Greg KH wrote: > >> On Fri, Oct 18, 2013 at 10:52:46PM -0700, Kevin Hilman wrote: > >> > Greg KH writes: > >> > > >> > > On Fri, Oct 18, 201

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-25 Thread Olof Johansson
On Sun, Oct 20, 2013 at 8:22 AM, Joe Perches wrote: > On Sat, 2013-10-19 at 19:57 -0700, Greg KH wrote: >> On Fri, Oct 18, 2013 at 10:52:46PM -0700, Kevin Hilman wrote: >> > Greg KH writes: >> > >> > > On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: >> > >> > A handful of boot panic

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-20 Thread Joe Perches
On Sat, 2013-10-19 at 19:57 -0700, Greg KH wrote: > On Fri, Oct 18, 2013 at 10:52:46PM -0700, Kevin Hilman wrote: > > Greg KH writes: > > > > > On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: > > >> > A handful of boot panics on ARM platforms were bisected to point at > > >> > the v

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-20 Thread Greg KH
On Fri, Oct 18, 2013 at 10:52:46PM -0700, Kevin Hilman wrote: > Greg KH writes: > > > On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: > >> > A handful of boot panics on ARM platforms were bisected to point at > >> > the version of this commit that's in linux-next (commit > >> > 64c8

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Kevin Hilman
Greg KH writes: > On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: >> > A handful of boot panics on ARM platforms were bisected to point at >> > the version of this commit that's in linux-next (commit >> > 64c862a839a8db2c02bbaa88b923d13e1208919d). Reverting this commit >> > makes t

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Greg KH
On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: > > A handful of boot panics on ARM platforms were bisected to point at > > the version of this commit that's in linux-next (commit > > 64c862a839a8db2c02bbaa88b923d13e1208919d). Reverting this commit > > makes things happy again. > > >

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Kevin Hilman
On Fri, Oct 18, 2013 at 10:06 AM, Joe Perches wrote: > On Fri, 2013-10-18 at 09:57 -0700, Kevin Hilman wrote: > [] >> A handful of boot panics on ARM platforms were bisected to point at >> the version of this commit that's in linux-next (commit >> 64c862a839a8db2c02bbaa88b923d13e1208919d). Revert

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Joe Perches
On Fri, 2013-10-18 at 09:57 -0700, Kevin Hilman wrote: [] > A handful of boot panics on ARM platforms were bisected to point at > the version of this commit that's in linux-next (commit > 64c862a839a8db2c02bbaa88b923d13e1208919d). Reverting this commit > makes things happy again. > > Upon further

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Kevin Hilman
> A handful of boot panics on ARM platforms were bisected to point at > the version of this commit that's in linux-next (commit > 64c862a839a8db2c02bbaa88b923d13e1208919d). Reverting this commit > makes things happy again. > > Upon further digging, it seems that users of devres_alloc() are > relyi

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-18 Thread Kevin Hilman
On Fri, Oct 11, 2013 at 1:11 PM, Andrew Morton wrote: > On Tue, 08 Oct 2013 22:32:27 -0700 Joe Perches wrote: > >> Currently, devm_ managed memory only supports kzalloc. >> >> Convert the devm_kzalloc implementation to devm_kmalloc >> and remove the complete memset to 0 but still set the >> initi

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-11 Thread Andrew Morton
On Tue, 08 Oct 2013 22:32:27 -0700 Joe Perches wrote: > Currently, devm_ managed memory only supports kzalloc. > > Convert the devm_kzalloc implementation to devm_kmalloc > and remove the complete memset to 0 but still set the > initial struct devres header and whatever padding before > data to

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-09 Thread Joe Perches
On Wed, 2013-10-09 at 12:30 -0400, Tejun Heo wrote: > Hello, > > On Wed, Oct 09, 2013 at 12:04:42AM -0700, Joe Perches wrote: > > > > > > devm_kzalloc > > > > > > devm_kcalloc > > > > > > devm_kmalloc_array > > > > > > > > > > > > Add gfp.h to device.h for the newly added static inlin

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-09 Thread Tejun Heo
Hello, On Wed, Oct 09, 2013 at 12:04:42AM -0700, Joe Perches wrote: > > > > > devm_kzalloc > > > > > devm_kcalloc > > > > > devm_kmalloc_array > > > > > > > > > > Add gfp.h to device.h for the newly added static inlines. ... > Unless Tejun has an objection soon, yes. Do we real

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-09 Thread Joe Perches
On Tue, 2013-10-08 at 23:54 -0700, Greg KH wrote: > On Tue, Oct 08, 2013 at 11:16:44PM -0700, Joe Perches wrote: > > On Tue, 2013-10-08 at 22:43 -0700, Greg KH wrote: > > > On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > > > > Currently, devm_ managed memory only supports kzalloc. >

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Greg KH
On Tue, Oct 08, 2013 at 11:16:44PM -0700, Joe Perches wrote: > On Tue, 2013-10-08 at 22:43 -0700, Greg KH wrote: > > On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > > > Currently, devm_ managed memory only supports kzalloc. > > > > > > Convert the devm_kzalloc implementation to devm

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Joe Perches
On Tue, 2013-10-08 at 22:43 -0700, Greg KH wrote: > On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > > Currently, devm_ managed memory only supports kzalloc. > > > > Convert the devm_kzalloc implementation to devm_kmalloc > > and remove the complete memset to 0 but still set the > >

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Greg KH
On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > Currently, devm_ managed memory only supports kzalloc. > > Convert the devm_kzalloc implementation to devm_kmalloc > and remove the complete memset to 0 but still set the > initial struct devres header and whatever padding before > dat