]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: shmobile: mark shmobile_init_late as __init
authorArnd Bergmann <arnd@arndb.de>
Sun, 23 Sep 2012 22:36:35 +0000 (22:36 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 9 Oct 2012 15:27:01 +0000 (17:27 +0200)
commit80e476488db03a4062c3d912b9c1dd7b5b547b4d
treee3543efcfecb98eb4fe54402b205988993dcaa1d
parent5015091612db5de988cfc0005a3e769d91c6bc50
ARM: shmobile: mark shmobile_init_late as __init

Patch 528533abaf "ARM: shmobile: Move definition of shmobile_init_late()
to header" moved the definition of the shmobile_init_late function, but
dropped the __init annotation, which is now causing warnings because
the function calls shmobile_suspend_init, which is also marked init.

Without this patch, building kota2_defconfig results in:

WARNING: vmlinux.o(.text+0xb7c8): Section mismatch in reference from the function shmobile_init_late() to the function .init.text:shmobile_suspend_init()
The function shmobile_init_late() references
the function __init shmobile_suspend_init().
This is often because shmobile_init_late lacks a __init
annotation or the annotation of shmobile_suspend_init is wrong.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Magnus Damm <damm@opensource.se>
Cc: Simon Horman <horms@verge.net.au>
arch/arm/mach-shmobile/include/mach/common.h