]> git.baikalelectronics.ru Git - kernel.git/commit
Add __init attribute to new_kmalloc_cache
authorChristoph Lameter <cl@linux.com>
Tue, 30 Jun 2015 14:01:11 +0000 (09:01 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 21:22:33 +0000 (14:22 -0700)
commit34a95f1f0c7978e3976572dd5fd35309652b8c1d
tree13690055d9500db5054240ae532ed5a6d82cd92a
parent7dc67892577823481bbaa551cf965e4d7f6b384d
Add __init attribute to new_kmalloc_cache

Avoid the warning:

  WARNING: mm/built-in.o(.text.unlikely+0xc22): Section mismatch in reference from the function .new_kmalloc_cache() to the variable .init.rodata:kmalloc_info
  The function .new_kmalloc_cache() references
  the variable __initconst kmalloc_info.

Signed-off-by: Christoph Lameter <cl@linux.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab_common.c