memblock tests: fix compilation errors
authorLiu Xinpeng <liuxp11@chinatelecom.cn>
Wed, 27 Jul 2022 10:07:33 +0000 (18:07 +0800)
committerMike Rapoport <rppt@linux.ibm.com>
Fri, 29 Jul 2022 06:34:50 +0000 (09:34 +0300)
commit0a7e91528202bec8e8dc5787c7568e6c60ce7f43
treed3e37175c6280eaa5c1b4ee6a02144261f787fb2
parent06c8580aa23ddc9b1c37b9c7c5e2cc504e460207
memblock tests: fix compilation errors

Do 'make -C tools/testing/memblock', get the following errors:

memblock.o: In function `memblock_find_in_range.constprop.9':
memblock.c:(.text+0x4651): undefined reference to `pr_warn_ratelimited'
memblock.o: In function `memblock_mark_mirror':
memblock.c:(.text+0x7171): undefined reference to `mirrored_kernelcore'

Fixes: 902c2d91582c ("memblock: Disable mirror feature if kernelcore is not specified")
Fixes: 14d9a675fd0d ("mm: Ratelimited mirrored memory related warning messages")
Signed-off-by: Liu Xinpeng <liuxp11@chinatelecom.cn>
Tested-by: Ma Wupeng <mawupeng1@huawei.com>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/1658916453-26312-1-git-send-email-liuxp11@chinatelecom.cn
tools/testing/memblock/internal.h