]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Fix section mismatch from kernel_map_range
authorSam Ravnborg <sam@ravnborg.org>
Mon, 25 Feb 2008 03:49:52 +0000 (19:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2008 03:49:52 +0000 (19:49 -0800)
commitc11af4dbd65f78a234f21d338084e3e763a332e1
tree95f24f2b076f0fa38e73bd95a233a9a562a12a47
parentfdab983ef1532a44ce773f099ed875a9193e0380
[SPARC64]: Fix section mismatch from kernel_map_range

Fix following warnings:
WARNING: vmlinux.o(.text+0x4f980): Section mismatch in reference from the function kernel_map_range() to the function .init.text:__alloc_bootmem()
WARNING: vmlinux.o(.text+0x4f9cc): Section mismatch in reference from the function kernel_map_range() to the function .init.text:__alloc_bootmem()

alloc_bootmem() is only used during early init and for any subsequent
call to kernel_map_range() the program logic avoid the call.
So annotate kernel_map_range() with __ref to tell modpost to
ignore the reference to a __init function.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/init.c