<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/mm/slob.c, branch v3.7</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Merge branch 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc into fixes</title>
<updated>2012-10-19T22:40:18+00:00</updated>
<author>
<name>Olof Johansson</name>
<email>olof@lixom.net</email>
</author>
<published>2012-10-19T22:40:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=068a565afad3ae818cc0d5495479c4abccc7762c'/>
<id>068a565afad3ae818cc0d5495479c4abccc7762c</id>
<content type='text'>
A collection of warning fixes on non-ARM code from Arnd Bergmann:

* 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  ARM: s3c: mark s3c2440_clk_add as __init_refok
  spi/s3c64xx: use correct dma_transfer_direction type
  pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops
  USB: EHCI: mark ehci_orion_conf_mbus_windows __devinit
  mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN
  SCSI: ARM: make fas216_dumpinfo function conditional
  SCSI: ARM: ncr5380/oak uses no interrupts
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A collection of warning fixes on non-ARM code from Arnd Bergmann:

* 'testing/driver-warnings' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
  ARM: s3c: mark s3c2440_clk_add as __init_refok
  spi/s3c64xx: use correct dma_transfer_direction type
  pcmcia: sharpsl: don't discard sharpsl_pcmcia_ops
  USB: EHCI: mark ehci_orion_conf_mbus_windows __devinit
  mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN
  SCSI: ARM: make fas216_dumpinfo function conditional
  SCSI: ARM: ncr5380/oak uses no interrupts
</pre>
</div>
</content>
</entry>
<entry>
<title>mm/slob: use min_t() to compare ARCH_SLAB_MINALIGN</title>
<updated>2012-10-09T19:56:28+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2012-08-05T15:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=baaf1dd491433a78826150aff7411015de7e9b65'/>
<id>baaf1dd491433a78826150aff7411015de7e9b65</id>
<content type='text'>
The definition of ARCH_SLAB_MINALIGN is architecture dependent
and can be either of type size_t or int. Comparing that value
with ARCH_KMALLOC_MINALIGN can cause harmless warnings on
platforms where they are different. Since both are always
small positive integer numbers, using the size_t type to compare
them is safe and gets rid of the warning.

Without this patch, building ARM collie_defconfig results in:

mm/slob.c: In function '__kmalloc_node':
mm/slob.c:431:152: warning: comparison of distinct pointer types lacks a cast [enabled by default]
mm/slob.c: In function 'kfree':
mm/slob.c:484:153: warning: comparison of distinct pointer types lacks a cast [enabled by default]
mm/slob.c: In function 'ksize':
mm/slob.c:503:153: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Christoph Lameter &lt;cl@linux.com&gt;
Cc: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The definition of ARCH_SLAB_MINALIGN is architecture dependent
and can be either of type size_t or int. Comparing that value
with ARCH_KMALLOC_MINALIGN can cause harmless warnings on
platforms where they are different. Since both are always
small positive integer numbers, using the size_t type to compare
them is safe and gets rid of the warning.

Without this patch, building ARM collie_defconfig results in:

mm/slob.c: In function '__kmalloc_node':
mm/slob.c:431:152: warning: comparison of distinct pointer types lacks a cast [enabled by default]
mm/slob.c: In function 'kfree':
mm/slob.c:484:153: warning: comparison of distinct pointer types lacks a cast [enabled by default]
mm/slob.c: In function 'ksize':
mm/slob.c:503:153: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Christoph Lameter &lt;cl@linux.com&gt;
Cc: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'slab/tracing' into slab/for-linus</title>
<updated>2012-10-03T06:57:17+00:00</updated>
<author>
<name>Pekka Enberg</name>
<email>penberg@kernel.org</email>
</author>
<published>2012-10-03T06:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e2087be35a8ed101c1e748ef688c889419c69829'/>
<id>e2087be35a8ed101c1e748ef688c889419c69829</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'slab/common-for-cgroups' into slab/for-linus</title>
<updated>2012-10-03T06:56:37+00:00</updated>
<author>
<name>Pekka Enberg</name>
<email>penberg@kernel.org</email>
</author>
<published>2012-10-03T06:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f4178cdddd4cb860a17f363fe13264fff03da7f2'/>
<id>f4178cdddd4cb860a17f363fe13264fff03da7f2</id>
<content type='text'>
Fix up a trivial conflict with NUMA_NO_NODE cleanups.

Conflicts:
	mm/slob.c

Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix up a trivial conflict with NUMA_NO_NODE cleanups.

Conflicts:
	mm/slob.c

Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm, slob: fix build breakage in __kmalloc_node_track_caller</title>
<updated>2012-09-26T06:33:49+00:00</updated>
<author>
<name>David Rientjes</name>
<email>rientjes@google.com</email>
</author>
<published>2012-09-25T19:53:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=82bd5508b4080e851ac1a9b62bed6d727b1b4a84'/>
<id>82bd5508b4080e851ac1a9b62bed6d727b1b4a84</id>
<content type='text'>
On Sat, 8 Sep 2012, Ezequiel Garcia wrote:

&gt; @@ -454,15 +455,35 @@ void *__kmalloc_node(size_t size, gfp_t gfp, int node)
&gt;  			gfp |= __GFP_COMP;
&gt;  		ret = slob_new_pages(gfp, order, node);
&gt;
&gt; -		trace_kmalloc_node(_RET_IP_, ret,
&gt; +		trace_kmalloc_node(caller, ret,
&gt;  				   size, PAGE_SIZE &lt;&lt; order, gfp, node);
&gt;  	}
&gt;
&gt;  	kmemleak_alloc(ret, size, 1, gfp);
&gt;  	return ret;
&gt;  }
&gt; +
&gt; +void *__kmalloc_node(size_t size, gfp_t gfp, int node)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, node, _RET_IP_);
&gt; +}
&gt;  EXPORT_SYMBOL(__kmalloc_node);
&gt;
&gt; +#ifdef CONFIG_TRACING
&gt; +void *__kmalloc_track_caller(size_t size, gfp_t gfp, unsigned long caller)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, NUMA_NO_NODE, caller);
&gt; +}
&gt; +
&gt; +#ifdef CONFIG_NUMA
&gt; +void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
&gt; +					int node, unsigned long caller)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, node, caller);
&gt; +}
&gt; +#endif

This breaks Pekka's slab/next tree with this:

mm/slob.c: In function '__kmalloc_node_track_caller':
mm/slob.c:488: error: 'gfp' undeclared (first use in this function)
mm/slob.c:488: error: (Each undeclared identifier is reported only once
mm/slob.c:488: error: for each function it appears in.)

mm, slob: fix build breakage in __kmalloc_node_track_caller

"mm, slob: Add support for kmalloc_track_caller()" breaks the build
because gfp is undeclared.  Fix it.

Acked-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: David Rientjes &lt;rientjes@google.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Sat, 8 Sep 2012, Ezequiel Garcia wrote:

&gt; @@ -454,15 +455,35 @@ void *__kmalloc_node(size_t size, gfp_t gfp, int node)
&gt;  			gfp |= __GFP_COMP;
&gt;  		ret = slob_new_pages(gfp, order, node);
&gt;
&gt; -		trace_kmalloc_node(_RET_IP_, ret,
&gt; +		trace_kmalloc_node(caller, ret,
&gt;  				   size, PAGE_SIZE &lt;&lt; order, gfp, node);
&gt;  	}
&gt;
&gt;  	kmemleak_alloc(ret, size, 1, gfp);
&gt;  	return ret;
&gt;  }
&gt; +
&gt; +void *__kmalloc_node(size_t size, gfp_t gfp, int node)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, node, _RET_IP_);
&gt; +}
&gt;  EXPORT_SYMBOL(__kmalloc_node);
&gt;
&gt; +#ifdef CONFIG_TRACING
&gt; +void *__kmalloc_track_caller(size_t size, gfp_t gfp, unsigned long caller)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, NUMA_NO_NODE, caller);
&gt; +}
&gt; +
&gt; +#ifdef CONFIG_NUMA
&gt; +void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
&gt; +					int node, unsigned long caller)
&gt; +{
&gt; +	return __do_kmalloc_node(size, gfp, node, caller);
&gt; +}
&gt; +#endif

This breaks Pekka's slab/next tree with this:

mm/slob.c: In function '__kmalloc_node_track_caller':
mm/slob.c:488: error: 'gfp' undeclared (first use in this function)
mm/slob.c:488: error: (Each undeclared identifier is reported only once
mm/slob.c:488: error: for each function it appears in.)

mm, slob: fix build breakage in __kmalloc_node_track_caller

"mm, slob: Add support for kmalloc_track_caller()" breaks the build
because gfp is undeclared.  Fix it.

Acked-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: David Rientjes &lt;rientjes@google.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm, slob: Add support for kmalloc_track_caller()</title>
<updated>2012-09-25T07:14:18+00:00</updated>
<author>
<name>Ezequiel Garcia</name>
<email>elezegarcia@gmail.com</email>
</author>
<published>2012-09-08T20:47:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f3f741019595f1e73564d985f5fe8abcbb98c769'/>
<id>f3f741019595f1e73564d985f5fe8abcbb98c769</id>
<content type='text'>
Currently slob falls back to regular kmalloc for this case.
With this patch kmalloc_track_caller() is correctly implemented,
thus tracing the specified caller.

This is important to trace accurately allocations performed by
krealloc, kstrdup, kmemdup, etc.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently slob falls back to regular kmalloc for this case.
With this patch kmalloc_track_caller() is correctly implemented,
thus tracing the specified caller.

This is important to trace accurately allocations performed by
krealloc, kstrdup, kmemdup, etc.

Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm, slob: Use NUMA_NO_NODE instead of -1</title>
<updated>2012-09-25T07:11:14+00:00</updated>
<author>
<name>Ezequiel Garcia</name>
<email>elezegarcia@gmail.com</email>
</author>
<published>2012-09-08T20:47:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=90f2cbbc49a8fe5a49cea1d362d90e377b949d49'/>
<id>90f2cbbc49a8fe5a49cea1d362d90e377b949d49</id>
<content type='text'>
Acked-by: David Rientjes &lt;rientjes@google.com&gt;
Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Acked-by: David Rientjes &lt;rientjes@google.com&gt;
Signed-off-by: Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm/sl[aou]b: Move kmem_cache refcounting to common code</title>
<updated>2012-09-05T09:00:37+00:00</updated>
<author>
<name>Christoph Lameter</name>
<email>cl@linux.com</email>
</author>
<published>2012-09-04T23:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cce89f4f6911286500cf7be0363f46c9b0a12ce0'/>
<id>cce89f4f6911286500cf7be0363f46c9b0a12ce0</id>
<content type='text'>
Get rid of the refcount stuff in the allocators and do that part of
kmem_cache management in the common code.

Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Get rid of the refcount stuff in the allocators and do that part of
kmem_cache management in the common code.

Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm/sl[aou]b: Shrink __kmem_cache_create() parameter lists</title>
<updated>2012-09-05T09:00:37+00:00</updated>
<author>
<name>Christoph Lameter</name>
<email>cl@linux.com</email>
</author>
<published>2012-09-04T23:18:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8a13a4cc80bb25c9eab2e7e56bab724fcfa55fce'/>
<id>8a13a4cc80bb25c9eab2e7e56bab724fcfa55fce</id>
<content type='text'>
Do the initial settings of the fields in common code. This will allow us
to push more processing into common code later and improve readability.

Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do the initial settings of the fields in common code. This will allow us
to push more processing into common code later and improve readability.

Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mm/sl[aou]b: Move kmem_cache allocations into common code</title>
<updated>2012-09-05T09:00:36+00:00</updated>
<author>
<name>Christoph Lameter</name>
<email>cl@linux.com</email>
</author>
<published>2012-09-05T00:20:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=278b1bb1313664d4999a7f7d47a8a8d964862d02'/>
<id>278b1bb1313664d4999a7f7d47a8a8d964862d02</id>
<content type='text'>
Shift the allocations to common code. That way the allocation and
freeing of the kmem_cache structures is handled by common code.

Reviewed-by: Glauber Costa &lt;glommer@parallels.com&gt;
Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Shift the allocations to common code. That way the allocation and
freeing of the kmem_cache structures is handled by common code.

Reviewed-by: Glauber Costa &lt;glommer@parallels.com&gt;
Signed-off-by: Christoph Lameter &lt;cl@linux.com&gt;
Signed-off-by: Pekka Enberg &lt;penberg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
