]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: mm/contig: fix section mismatch warning/error
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 23 Feb 2023 03:42:58 +0000 (19:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:47 +0000 (11:35 +0200)
commitba2a54c12d4d269de61845a29c3814af9be406e6
treeadcd5ff34ec98d7140888642a4a139d2d016d2fc
parentd01c5340f3c1d2995f213a34aacee5ab18c03856
ia64: mm/contig: fix section mismatch warning/error

[ Upstream commit 58deeb4ef3b054498747d0929d94ac53ab90981f ]

alloc_per_cpu_data() is called by find_memory(), which is marked as
__init.  Therefore alloc_per_cpu_data() can also be marked as __init to
remedy this modpost problem.

WARNING: modpost: vmlinux.o: section mismatch in reference: alloc_per_cpu_data (section: .text) -> memblock_alloc_try_nid (section: .init.text)

Link: https://lkml.kernel.org/r/20230223034258.12917-1-rdunlap@infradead.org
Fixes: 5850f2db740a ("[IA64] Fix section mismatch in contig.c version of per_cpu_init()")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/ia64/mm/contig.c