Skip to content

Commit

Permalink
powerpc32/chrp: fix section mismatch warning
Browse files Browse the repository at this point in the history
This patch fixes a section mismatch warning

WARNING: vmlinux.o(.text+0x213b6): Section mismatch in reference from the function chrp_init_early() to the variable .init.data:boot_command_line
The function chrp_init_early() references
the variable __initdata boot_command_line.
This is often because chrp_init_early lacks a __initdata
annotation or the annotation of boot_command_line is wrong.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
LEROY Christophe authored and Michael Ellerman committed Mar 31, 2015
1 parent 6bc08d0 commit 6a84079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/chrp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void briq_restart(char *cmd)
* But unfortunately, the firmware does not connect /chosen/{stdin,stdout}
* the the built-in serial node. Instead, a /failsafe node is created.
*/
static void chrp_init_early(void)
static __init void chrp_init_early(void)
{
struct device_node *node;
const char *property;
Expand Down

0 comments on commit 6a84079

Please sign in to comment.