diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2016-03-05 16:23:50 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-03-05 16:23:50 +0000 |
commit | 21cf64b4ad001ac0ff1cc0d1e8a0fb61476a501a (patch) | |
tree | 456aca82f2c9019f7b6d51a15651bab5d67cc51f /target/linux | |
parent | 837d4f8f41a18b2aa4a7689e5947391c788b2e20 (diff) | |
download | upstream-21cf64b4ad001ac0ff1cc0d1e8a0fb61476a501a.tar.gz upstream-21cf64b4ad001ac0ff1cc0d1e8a0fb61476a501a.tar.bz2 upstream-21cf64b4ad001ac0ff1cc0d1e8a0fb61476a501a.zip |
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 <hauke@hauke-m.de>
SVN-Revision: 48931
Diffstat (limited to 'target/linux')
4 files changed, 4 insertions, 4 deletions
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; |