<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PATCH] ARM: mm: Fix section mismatches</title>
        <description> WARNING: vmlinux.o(.text+0x111b8): Section mismatch in reference
from the function arm_memory_present() to the function
..init.text:memory_present()
The function arm_memory_present() references
the function __init memory_present().
This is often because arm_memory_present lacks a __init
annotation or the annotation of memory_present is wrong.

WARNING: arch/arm/mm/built-in.o(.text+0x1edc): Section mismatch
in reference from the function alloc_init_pud() to the function
..init.text:alloc_init_section()
The function alloc_init_pud() references
the function __init alloc_init_section().
This is often because alloc_init_pud lacks a __init
annotation or the annotation of alloc_init_section is wrong.

Signed-off-by: Stephen Boyd &amp;lt;sboyd@codeaurora.org&amp;gt;
---
 arch/arm/mm/init.c |    4 ++--
 arch/arm/mm/mmu.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 6e9fde6..c21d06c 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -302,11 +302,11 @@ EXPORT_SYMBOL(pfn_valid);
 #endif
 
 #ifndef CONFIG_SPARSEMEM
-static void arm_memory_present(void)
+static void __init arm_memory_present(void)
 {
 }
 #else
-static void arm_memory_present(void)
+static void __init arm_memory_present(void)
 {
 	struct memblock_region *reg;
 
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 4c1c6f2..81af404 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -626,8 +626,8 @@ static void __init alloc_init_section(pud_t *pud, unsigned long addr,
 	}
 }
 
-static void alloc_init_pud(pgd_t *pgd, unsigned long addr, unsigned long end,
-	unsigned long phys, const struct mem_type *type)
+static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,
+	unsigned long end, unsigned long phys, const struct mem_type *type)
 {
 	pud_t *pud = pud_offset(pgd, addr);
 	unsigned long next;
-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-kernel&amp;quot; in
the body of a message to &amp;#109;&amp;#97;&amp;#106;&amp;#111;&amp;#114;&amp;#100;&amp;#111;&amp;#109;&amp;#111;&amp;#64;&amp;#118;&amp;#103;&amp;#101;&amp;#114;&amp;#46;&amp;#107;&amp;#101;&amp;#114;&amp;#110;&amp;#101;&amp;#108;&amp;#46;&amp;#111;&amp;#114;&amp;#103;
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/</description>
        <link>http://www.serverphorums.com/read.php?12,485985,485985#msg-485985</link>
        <lastBuildDate>Sun, 19 May 2013 14:24:27 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?12,485985,485985#msg-485985</guid>
            <title>[PATCH] ARM: mm: Fix section mismatches</title>
            <link>http://www.serverphorums.com/read.php?12,485985,485985#msg-485985</link>
            <description><![CDATA[ WARNING: vmlinux.o(.text+0x111b8): Section mismatch in reference<br />
from the function arm_memory_present() to the function<br />
..init.text:memory_present()<br />
The function arm_memory_present() references<br />
the function __init memory_present().<br />
This is often because arm_memory_present lacks a __init<br />
annotation or the annotation of memory_present is wrong.<br />
<br />
WARNING: arch/arm/mm/built-in.o(.text+0x1edc): Section mismatch<br />
in reference from the function alloc_init_pud() to the function<br />
..init.text:alloc_init_section()<br />
The function alloc_init_pud() references<br />
the function __init alloc_init_section().<br />
This is often because alloc_init_pud lacks a __init<br />
annotation or the annotation of alloc_init_section is wrong.<br />
<br />
Signed-off-by: Stephen Boyd &lt;sboyd@codeaurora.org&gt;<br />
---<br />
 arch/arm/mm/init.c |    4 ++--<br />
 arch/arm/mm/mmu.c  |    4 ++--<br />
 2 files changed, 4 insertions(+), 4 deletions(-)<br />
<br />
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c<br />
index 6e9fde6..c21d06c 100644<br />
--- a/arch/arm/mm/init.c<br />
+++ b/arch/arm/mm/init.c<br />
@@ -302,11 +302,11 @@ EXPORT_SYMBOL(pfn_valid);<br />
 #endif<br />
 <br />
 #ifndef CONFIG_SPARSEMEM<br />
-static void arm_memory_present(void)<br />
+static void __init arm_memory_present(void)<br />
 {<br />
 }<br />
 #else<br />
-static void arm_memory_present(void)<br />
+static void __init arm_memory_present(void)<br />
 {<br />
 	struct memblock_region *reg;<br />
 <br />
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c<br />
index 4c1c6f2..81af404 100644<br />
--- a/arch/arm/mm/mmu.c<br />
+++ b/arch/arm/mm/mmu.c<br />
@@ -626,8 +626,8 @@ static void __init alloc_init_section(pud_t *pud, unsigned long addr,<br />
 	}<br />
 }<br />
 <br />
-static void alloc_init_pud(pgd_t *pgd, unsigned long addr, unsigned long end,<br />
-	unsigned long phys, const struct mem_type *type)<br />
+static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,<br />
+	unsigned long end, unsigned long phys, const struct mem_type *type)<br />
 {<br />
 	pud_t *pud = pud_offset(pgd, addr);<br />
 	unsigned long next;<br />
-- <br />
Sent by an employee of the Qualcomm Innovation Center, Inc.<br />
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  <a href="http://vger.kernel.org/majordomo-info.html" target="_blank"  rel="nofollow">http://vger.kernel.org/majordomo-info.html</a><br />
Please read the FAQ at  <a href="http://www.tux.org/lkml/" target="_blank"  rel="nofollow">http://www.tux.org/lkml/</a>]]></description>
            <dc:creator>Stephen Boyd</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Wed, 25 Apr 2012 21:30:01 +0200</pubDate>
        </item>
    </channel>
</rss>
