kernel: fix section mismatch in crashlog
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Mar 2016 16:23:50 +0000 (16:23 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Mar 2016 16:23:50 +0000 (16:23 +0000)
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 <hauke@hauke-m.de>
SVN-Revision: 48931

target/linux/generic/patches-3.18/930-crashlog.patch
target/linux/generic/patches-4.1/930-crashlog.patch
target/linux/generic/patches-4.3/930-crashlog.patch
target/linux/generic/patches-4.4/930-crashlog.patch

index b1c38a70f26028b44e0cc1e95d90bc9edf6f449c..6615db5466d6dfc7a09eab4b7bab138dc7ce814a 100644 (file)
 +#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;
index be0f7d02d698437d6abbb422caefd938e87e99ef..31c0aa535933bedbe75ba67ee89328b5fbb02a6f 100644 (file)
 +#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;
index bb6805b1e9d3726f926a19d80a288de09ef3cb75..514ff469d8dc9f9c8101b077dc863030e9e858c9 100644 (file)
 +#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;
index bb6805b1e9d3726f926a19d80a288de09ef3cb75..514ff469d8dc9f9c8101b077dc863030e9e858c9 100644 (file)
 +#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;