Files
tegra-linux-noble/include/linux
Joe Perches 64c862a839 devres: add kernel standard devm_k.alloc functions
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 0.

Add the other normal alloc variants as static inlines with __GFP_ZERO
added to the gfp flag where appropriate:

	devm_kzalloc
	devm_kcalloc
	devm_kmalloc_array

Add gfp.h to device.h for the newly added static inlines.

akpm: the current API forces us to replace kmalloc() with kzalloc() when
performing devm_ conversions.  This adds a relatively minor overhead.
More significantly, it will defeat kmemcheck used-uninitialized checking,
and for a particular driver, losing used-uninitialised checking for their
core controlling data structures will significantly degrade kmemcheck
usefulness.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Sangjung Woo <sangjung.woo@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-16 18:29:07 -07:00
..
2013-08-26 14:09:03 -04:00
2013-08-14 13:55:15 +05:30
2013-08-26 18:40:56 -04:00
2013-08-27 01:44:40 +02:00
2013-08-26 20:15:23 +09:00
2013-08-22 22:13:54 -07:00
2013-09-13 15:09:52 +02:00
2013-08-23 10:22:29 +02:00
2013-08-22 20:30:15 -07:00
2013-09-11 15:59:42 -07:00
2013-09-13 15:09:52 +02:00
2013-09-13 15:09:52 +02:00
2013-09-13 15:09:52 +02:00
2013-08-09 10:49:00 +02:00
2013-08-28 21:35:14 -07:00
2013-08-12 15:27:01 +00:00
2013-09-08 20:20:23 -04:00
2013-09-03 16:40:32 -04:00
2013-09-24 21:12:32 -05:00
2013-08-12 15:27:01 +00:00
2013-09-09 14:29:15 -07:00
2013-09-10 18:56:32 -04:00
2013-09-04 23:11:42 +03:00
2013-09-12 15:38:02 -07:00
2013-09-26 15:33:18 -07:00
2013-08-05 10:52:36 -06:00