From: hauke Date: Sat, 5 Mar 2016 16:23:50 +0000 (+0000) Subject: kernel: fix section mismatch in crashlog X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=c7e64b14dc18aa2bf5bbe2fe34838810b0b9a080;p=openwrt.git kernel: fix section mismatch in crashlog The function memblock_insert_region() is in the section __init_memblock, also put crashlog_init_memblock there. This fixes this section mismatch warning: The function memblock_insert_region.isra.1() references the function __meminit crashlog_init_memblock(). This is often because memblock_insert_region.isra.1 lacks a __meminit annotation or the annotation of crashlog_init_memblock is wrong. Signed-off-by: Hauke Mehrtens git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48931 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/generic/patches-3.18/930-crashlog.patch b/target/linux/generic/patches-3.18/930-crashlog.patch index b1c38a70f2..6615db5466 100644 --- a/target/linux/generic/patches-3.18/930-crashlog.patch +++ b/target/linux/generic/patches-3.18/930-crashlog.patch @@ -121,7 +121,7 @@ +#endif + +#ifdef CONFIG_HAVE_MEMBLOCK -+void __meminit crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) ++void __init_memblock crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) +{ + if (crashlog_addr) + return; diff --git a/target/linux/generic/patches-4.1/930-crashlog.patch b/target/linux/generic/patches-4.1/930-crashlog.patch index be0f7d02d6..31c0aa5359 100644 --- a/target/linux/generic/patches-4.1/930-crashlog.patch +++ b/target/linux/generic/patches-4.1/930-crashlog.patch @@ -121,7 +121,7 @@ +#endif + +#ifdef CONFIG_HAVE_MEMBLOCK -+void __meminit crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) ++void __init_memblock crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) +{ + if (crashlog_addr) + return; diff --git a/target/linux/generic/patches-4.3/930-crashlog.patch b/target/linux/generic/patches-4.3/930-crashlog.patch index bb6805b1e9..514ff469d8 100644 --- a/target/linux/generic/patches-4.3/930-crashlog.patch +++ b/target/linux/generic/patches-4.3/930-crashlog.patch @@ -121,7 +121,7 @@ +#endif + +#ifdef CONFIG_HAVE_MEMBLOCK -+void __meminit crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) ++void __init_memblock crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) +{ + if (crashlog_addr) + return; diff --git a/target/linux/generic/patches-4.4/930-crashlog.patch b/target/linux/generic/patches-4.4/930-crashlog.patch index bb6805b1e9..514ff469d8 100644 --- a/target/linux/generic/patches-4.4/930-crashlog.patch +++ b/target/linux/generic/patches-4.4/930-crashlog.patch @@ -121,7 +121,7 @@ +#endif + +#ifdef CONFIG_HAVE_MEMBLOCK -+void __meminit crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) ++void __init_memblock crashlog_init_memblock(phys_addr_t addr, phys_addr_t size) +{ + if (crashlog_addr) + return;