Marcin Slusarz 8d6ea9674c x86: fix section mismatch warning - spp_getpage()
WARNING: vmlinux.o(.text+0x17a3e): Section mismatch in reference from the function set_pte_vaddr_pud() to the function .init.text:spp_getpage()
The function set_pte_vaddr_pud() references
the function __init spp_getpage().
This is often because set_pte_vaddr_pud lacks a __init
annotation or the annotation of spp_getpage is wrong.

spp_getpage is called from __init (__init_extra_mapping) and
non __init (set_pte_vaddr_pud) functions, so it can't be __init.
Unfortunately it calls alloc_bootmem_pages which is __init,
but does it only when bootmem allocator is available (after_bootmem == 0).

So annotate it accordingly.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
2008-08-15 19:16:06 +02:00
..
2008-07-22 10:43:45 +02:00
2008-01-30 13:31:41 +01:00
2008-04-30 23:15:34 +02:00
2008-07-08 13:10:38 +02:00
2008-07-18 14:10:27 +02:00
2008-01-30 13:31:10 +01:00
2008-08-15 15:27:55 +02:00
2008-07-26 12:00:10 -07:00
2008-08-11 18:44:02 +02:00
2008-07-11 10:22:33 +02:00
2008-05-24 11:27:28 +02:00