* [PATCH 1/3] OMAP2+: Fix debug section mistmatch warnings
@ 2011-06-01 5:58 Govindraj.R
2011-06-01 7:13 ` Tony Lindgren
0 siblings, 1 reply; 3+ messages in thread
From: Govindraj.R @ 2011-06-01 5:58 UTC (permalink / raw)
To: linux-omap; +Cc: Tony Lindgren, Nishant Kamat, Govindraj.R
Fix the below debug section mismatch warnings.
while compiling kernel with CONFIG_DEBUG_SECTION_MISMATCH=y
WARNING: vmlinux.o(.data+0x38638): Section mismatch in reference from the
variable serial*_data to the (unknown reference) .init.data:(unknown)
The variable serial*_data references
the (unknown reference) __initdata (unknown)
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Reported-by: Nishant Kamat <nskamat@ti.com>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
---
Based on 3.0-rc1
arch/arm/mach-omap2/board-3430sdp.c | 6 +++---
arch/arm/mach-omap2/board-4430sdp.c | 6 +++---
arch/arm/mach-omap2/board-omap4panda.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index ae2963a..5dac974 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -622,19 +622,19 @@ 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),
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 73fa90b..f90623d 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -681,19 +681,19 @@ 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),
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 90485fc..84a8e4a 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -526,19 +526,19 @@ 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),
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] OMAP2+: Fix debug section mistmatch warnings
2011-06-01 5:58 [PATCH 1/3] OMAP2+: Fix debug section mistmatch warnings Govindraj.R
@ 2011-06-01 7:13 ` Tony Lindgren
2011-06-01 7:31 ` Govindraj
0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2011-06-01 7:13 UTC (permalink / raw)
To: Govindraj.R; +Cc: linux-omap, Nishant Kamat
* Govindraj.R <govindraj.raja@ti.com> [110531 22:54]:
> Fix the below debug section mismatch warnings.
> while compiling kernel with CONFIG_DEBUG_SECTION_MISMATCH=y
>
> WARNING: vmlinux.o(.data+0x38638): Section mismatch in reference from the
> variable serial*_data to the (unknown reference) .init.data:(unknown)
> The variable serial*_data references
> the (unknown reference) __initdata (unknown)
> If the reference is valid then annotate the
> variable with __init* or __refdata (see linux/init.h) or name the variable:
> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
These should be already fixed by an earlier patch. Can you please
check against our devel-fixes branch?
Tony
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/3] OMAP2+: Fix debug section mistmatch warnings
2011-06-01 7:13 ` Tony Lindgren
@ 2011-06-01 7:31 ` Govindraj
0 siblings, 0 replies; 3+ messages in thread
From: Govindraj @ 2011-06-01 7:31 UTC (permalink / raw)
To: Tony Lindgren; +Cc: Govindraj.R, linux-omap, Nishant Kamat
On Wed, Jun 1, 2011 at 12:43 PM, Tony Lindgren <tony@atomide.com> wrote:
> * Govindraj.R <govindraj.raja@ti.com> [110531 22:54]:
>> Fix the below debug section mismatch warnings.
>> while compiling kernel with CONFIG_DEBUG_SECTION_MISMATCH=y
>>
>> WARNING: vmlinux.o(.data+0x38638): Section mismatch in reference from the
>> variable serial*_data to the (unknown reference) .init.data:(unknown)
>> The variable serial*_data references
>> the (unknown reference) __initdata (unknown)
>> If the reference is valid then annotate the
>> variable with __init* or __refdata (see linux/init.h) or name the variable:
>> *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
>
> These should be already fixed by an earlier patch. Can you please
> check against our devel-fixes branch?
Yes this is already fixed. Sorry for the noise.
--
Thanks,
Govindraj.R
>
> Tony
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-01 7:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 5:58 [PATCH 1/3] OMAP2+: Fix debug section mistmatch warnings Govindraj.R
2011-06-01 7:13 ` Tony Lindgren
2011-06-01 7:31 ` Govindraj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.