mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
ARM: bcm: mark bcm_kona_smc_init as __init
The bcm_kona_smc_init function references the bcm_kona_smc_ids variable that is marked __initconst, so the function itself has to be __init to avoid this build error: WARNING: arch/arm/mach-bcm/built-in.o(.text+0x12c): Section mismatch in reference from the function bcm_kona_smc_init() to the (unknown reference) .init.rodata:(unknown) Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Christian Daudt <csd@broadcom.com>
This commit is contained in:
parent
5724c52fbe
commit
721e0205b0
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ static const struct of_device_id bcm_kona_smc_ids[] __initconst = {
|
|||
};
|
||||
|
||||
/* Map in the bounce area */
|
||||
void bcm_kona_smc_init(void)
|
||||
void __init bcm_kona_smc_init(void)
|
||||
{
|
||||
struct device_node *node;
|
||||
|
||||
|
|
Loading…
Reference in a new issue