diff options
author | Jason Liu <r64343@freescale.com> | 2012-03-27 21:20:58 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-03-27 21:25:28 +0800 |
commit | ddc6c83d1d3263701870d4b7c324e2d811e3f1b9 (patch) | |
tree | d9a22430b0b479153d76281759514f0f21e11643 /arch | |
parent | 46353401a4d42f861bcca6702681ffd3a22acd5e (diff) |
ENGR00178118-2 fix some build warnings when using GCC 4.6.2
fix some build warnings when using GCC 4.6.2:
arch/arm/mach-mx6/board-mx6q_sabresd.c:1588:20:
warning: function declaration isn't a prototype [-Wstrict-prototypes]
This patch also fix the following section mismatch warnings:
The function imx6q_init_audio() references
the variable __initconst imx6_imx_ssi_data.
This is often because imx6q_init_audio lacks a __initconst
annotation or the annotation of imx6_imx_ssi_data is wrong.
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx6/board-mx6q_sabresd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-mx6q_sabresd.c index d4ef1d07b2d3..a0cd1bb7ec96 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabresd.c +++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c @@ -1273,7 +1273,7 @@ static struct platform_device sabresd_vmmc_reg_devices = { }, }; -static int imx6q_init_audio(void) +static int __init imx6q_init_audio(void) { if (board_is_mx6_reva()) { mxc_register_device(&mx6_sabresd_audio_wm8958_device, @@ -1591,7 +1591,7 @@ static struct sys_timer mx6_sabresd_timer = { .init = mx6_sabresd_timer_init, }; -static void __init mx6q_sabresd_reserve() +static void __init mx6q_sabresd_reserve(void) { phys_addr_t phys; |