From: Stephen Warren <hidden> Date: 2013-06-21 22:39:07
From: Stephen Warren <redacted>
tegra_pmc_parse_dt() references __initconst data. Fix it to be __init.
This matches its only usage; a call from tegra_pmc_init() which is
already __init. This fixes:
WARNING: vmlinux.o(.text.unlikely+0x580): Section mismatch in reference
from the function tegra_pmc_parse_dt() to the (unknown reference)
.init.rodata:(unknown)
Signed-off-by: Stephen Warren <redacted>
---
arch/arm/mach-tegra/pmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Joseph Lo <hidden> Date: 2013-06-24 02:40:00
On Sat, 2013-06-22 at 06:39 +0800, Stephen Warren wrote:
From: Stephen Warren <redacted>
tegra_pmc_parse_dt() references __initconst data. Fix it to be __init.
This matches its only usage; a call from tegra_pmc_init() which is
already __init. This fixes:
WARNING: vmlinux.o(.text.unlikely+0x580): Section mismatch in reference
from the function tegra_pmc_parse_dt() to the (unknown reference)
.init.rodata:(unknown)
Hi Stephen,
Just curious, I don't see this warning message on my system. Does this
cause by some other patch or something else?
Thanks,
Joseph
From: Stephen Warren <hidden> Date: 2013-06-24 15:19:10
On 06/23/2013 08:40 PM, Joseph Lo wrote:
On Sat, 2013-06-22 at 06:39 +0800, Stephen Warren wrote:
quoted
From: Stephen Warren <redacted>
tegra_pmc_parse_dt() references __initconst data. Fix it to be __init.
This matches its only usage; a call from tegra_pmc_init() which is
already __init. This fixes:
WARNING: vmlinux.o(.text.unlikely+0x580): Section mismatch in reference
from the function tegra_pmc_parse_dt() to the (unknown reference)
.init.rodata:(unknown)
Hi Stephen,
Just curious, I don't see this warning message on my system. Does this
cause by some other patch or something else?
The warning only shows up with CONFIG_DEBUG_SECTION_MISMATCH=y, which
isn't in tegra_defconfig.
From: Olof Johansson <hidden> Date: 2013-06-25 18:17:28
On Fri, Jun 21, 2013 at 04:39:07PM -0600, Stephen Warren wrote:
From: Stephen Warren <redacted>
tegra_pmc_parse_dt() references __initconst data. Fix it to be __init.
This matches its only usage; a call from tegra_pmc_init() which is
already __init. This fixes:
WARNING: vmlinux.o(.text.unlikely+0x580): Section mismatch in reference
from the function tegra_pmc_parse_dt() to the (unknown reference)
.init.rodata:(unknown)
Signed-off-by: Stephen Warren <redacted>
---