From patchwork Thu Apr 7 08:05:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 691961 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3785TSL001556 for ; Thu, 7 Apr 2011 08:05:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755393Ab1DGIFZ (ORCPT ); Thu, 7 Apr 2011 04:05:25 -0400 Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:35344 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754631Ab1DGIFU (ORCPT ); Thu, 7 Apr 2011 04:05:20 -0400 Received: from mail-ew0-f47.google.com ([209.85.215.47]) (using TLSv1) by na3sys009aob105.postini.com ([74.125.148.12]) with SMTP ID DSNKTZ1wP1NA+y8MLVKjDL9l9GDFh5zZZPVV@postini.com; Thu, 07 Apr 2011 01:05:20 PDT Received: by ewy5 with SMTP id 5so643729ewy.6 for ; Thu, 07 Apr 2011 01:05:18 -0700 (PDT) Received: by 10.213.23.89 with SMTP id q25mr182991ebb.120.1302163518179; Thu, 07 Apr 2011 01:05:18 -0700 (PDT) Received: from localhost (cs181221225.pp.htv.fi [82.181.221.225]) by mx.google.com with ESMTPS id y7sm887042eeh.7.2011.04.07.01.05.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Apr 2011 01:05:17 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Subject: [RFC/PATCH] arm: omap2plus: kill section mismatches Date: Thu, 7 Apr 2011 11:05:11 +0300 Message-Id: <1302163511-32510-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.4.1.343.ga91df Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 07 Apr 2011 08:05:31 +0000 (UTC) Those were very simple to fix and while we should be putting effort on code consolidation, having a noisy compilation is very painful and makes it more difficult to see newer warnings introduced by re-factoring other code. Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/board-3430sdp.c | 10 +++++----- arch/arm/mach-omap2/board-4430sdp.c | 8 ++++---- arch/arm/mach-omap2/board-omap4panda.c | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index 9afd087..5f15767 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c @@ -719,25 +719,25 @@ static struct omap_device_pad serial3_pads[] __initdata = { OMAP_MUX_MODE0), }; -static struct omap_board_data serial1_data = { +static struct omap_board_data serial1_data __initdata = { .id = 0, .pads = serial1_pads, .pads_cnt = ARRAY_SIZE(serial1_pads), }; -static struct omap_board_data serial2_data = { +static struct omap_board_data serial2_data __initdata = { .id = 1, .pads = serial2_pads, .pads_cnt = ARRAY_SIZE(serial2_pads), }; -static struct omap_board_data serial3_data = { +static struct omap_board_data serial3_data __initdata = { .id = 2, .pads = serial3_pads, .pads_cnt = ARRAY_SIZE(serial3_pads), }; -static inline void board_serial_init(void) +static inline void __init board_serial_init(void) { omap_serial_init_port(&serial1_data); omap_serial_init_port(&serial2_data); @@ -746,7 +746,7 @@ static inline void board_serial_init(void) #else #define board_mux NULL -static inline void board_serial_init(void) +static inline void __init board_serial_init(void) { omap_serial_init(); } diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 56702c5..ab701cd 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -736,25 +736,25 @@ static struct omap_device_pad serial4_pads[] __initdata = { OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), }; -static struct omap_board_data serial2_data = { +static struct omap_board_data serial2_data __initdata = { .id = 1, .pads = serial2_pads, .pads_cnt = ARRAY_SIZE(serial2_pads), }; -static struct omap_board_data serial3_data = { +static struct omap_board_data serial3_data __initdata = { .id = 2, .pads = serial3_pads, .pads_cnt = ARRAY_SIZE(serial3_pads), }; -static struct omap_board_data serial4_data = { +static struct omap_board_data serial4_data __initdata = { .id = 3, .pads = serial4_pads, .pads_cnt = ARRAY_SIZE(serial4_pads), }; -static inline void board_serial_init(void) +static inline void __init board_serial_init(void) { struct omap_board_data bdata; bdata.flags = 0; diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index f3a7b10..4573b96 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c @@ -551,25 +551,25 @@ static struct omap_device_pad serial4_pads[] __initdata = { OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), }; -static struct omap_board_data serial2_data = { +static struct omap_board_data serial2_data __initdata = { .id = 1, .pads = serial2_pads, .pads_cnt = ARRAY_SIZE(serial2_pads), }; -static struct omap_board_data serial3_data = { +static struct omap_board_data serial3_data __initdata = { .id = 2, .pads = serial3_pads, .pads_cnt = ARRAY_SIZE(serial3_pads), }; -static struct omap_board_data serial4_data = { +static struct omap_board_data serial4_data __initdata = { .id = 3, .pads = serial4_pads, .pads_cnt = ARRAY_SIZE(serial4_pads), }; -static inline void board_serial_init(void) +static inline void __init board_serial_init(void) { struct omap_board_data bdata; bdata.flags = 0;