diff options
author | Christoph Lameter <cl@linux.com> | 2015-06-30 17:01:11 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-02 00:22:33 +0300 |
commit | ae6f2462e59d47d396996e330b6f4183e6c9fa98 (patch) | |
tree | 13690055d9500db5054240ae532ed5a6d82cd92a /mm | |
parent | 5c3950970b91df6a15db66ec4498bac9b12f4002 (diff) | |
download | linux-ae6f2462e59d47d396996e330b6f4183e6c9fa98.tar.xz |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index 983b78694c46..3e5f8f29c286 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -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); |