linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning in the origin tree
@ 2015-06-30  3:50 Stephen Rothwell
  2015-06-30 14:01 ` Christoph Lameter
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2015-06-30  3:50 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-next, linux-kernel, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

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").

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build warning in the origin tree
  2015-06-30  3:50 linux-next: build warning in the origin tree Stephen Rothwell
@ 2015-06-30 14:01 ` Christoph Lameter
  2015-07-01 13:31   ` Geert Uytterhoeven
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Lameter @ 2015-06-30 14:01 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linus Torvalds, linux-next, linux-kernel

On Tue, 30 Jun 2015, Stephen Rothwell wrote:

> 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").


Subject: Add __init attribute to new_kmalloc_cache

Signed-off-by: Christoph Lameter <cl@linux.com>

Index: linux/mm/slab_common.c
===================================================================
--- linux.orig/mm/slab_common.c
+++ linux/mm/slab_common.c
@@ -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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build warning in the origin tree
  2015-06-30 14:01 ` Christoph Lameter
@ 2015-07-01 13:31   ` Geert Uytterhoeven
  0 siblings, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2015-07-01 13:31 UTC (permalink / raw)
  To: Christoph Lameter
  Cc: Stephen Rothwell, Linus Torvalds, Linux-Next, linux-kernel

On Tue, Jun 30, 2015 at 4:01 PM, Christoph Lameter <cl@linux.com> wrote:
> On Tue, 30 Jun 2015, Stephen Rothwell wrote:
>> 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").
>
>
> Subject: Add __init attribute to new_kmalloc_cache
>
> Signed-off-by: Christoph Lameter <cl@linux.com>

Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>

>
> Index: linux/mm/slab_common.c
> ===================================================================
> --- linux.orig/mm/slab_common.c
> +++ linux/mm/slab_common.c
> @@ -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 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-01 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-30  3:50 linux-next: build warning in the origin tree Stephen Rothwell
2015-06-30 14:01 ` Christoph Lameter
2015-07-01 13:31   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).