linux-next: build warning in the origin tree
Subsystems (3)
Hi Linus,
Building the origin tree, today's linux-next build (powerpc allyesconfig) produced this 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.
This is often because .new_kmalloc_cache lacks a __initconst
annotation or the annotation of kmalloc_info is wrong.
Caused by commit a9730fca9946 ("Fix kmalloc slab creation sequence").
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 7 lines · Stephen Rothwell
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__initconstkmalloc_info.
This is often because .new_kmalloc_cache lacks a__initconst
annotation or the annotation ofkmalloc_infois wrong.Caused by commit
a9730fca9946("Fix kmalloc slab creation sequence").
Subject: Add __init attribute to new_kmalloc_cache
mm/slab_common.c +1 -1
@@ -855,7 +855,7 @@ void __init setup_kmalloc_cache_index_ta } } -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);
Geert Uytterhoeven
Tested-byQuoted 7 lines · Christoph Lameter
Quoted 6 lines · Stephen Rothwell
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__initconstkmalloc_info.
This is often because .new_kmalloc_cache lacks a__initconst
annotation or the annotation ofkmalloc_infois wrong.
Quoted 6 lines
Quoted 1 line
Caused by commit
a9730fca9946("Fix kmalloc slab creation sequence").Subject: Add
__initattribute tonew_kmalloc_cacheSigned-off-by Christoph Lameter <[email protected]>
Quoted 6 lines
Index:
linux/mm/slab_common.c
===================================================================
mm/slab_common.c void __init setup_kmalloc_cache_index_ta · line 861
Quoted 8 lines
mm/slab_common.c +1
-1@@ -855,7 +855,7 @@ void __init setup_kmalloc_cache_index_ta } } -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);
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds