提交 ae6f2462 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

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: NChristoph Lameter <cl@linux.com>
Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
Tested-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5c395097
......@@ -855,7 +855,7 @@ void __init setup_kmalloc_cache_index_table(void)
}
}
static void new_kmalloc_cache(int idx, unsigned long flags)
static void __init new_kmalloc_cache(int idx, unsigned long flags)
{
kmalloc_caches[idx] = create_kmalloc_cache(kmalloc_info[idx].name,
kmalloc_info[idx].size, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册