Skip to content
Commit 0a7e9152 authored by Liu Xinpeng's avatar Liu Xinpeng Committed by Mike Rapoport
Browse files

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: 902c2d91 ("memblock: Disable mirror feature if kernelcore is not specified")
Fixes: 14d9a675 ("mm: Ratelimited mirrored memory related warning messages")

Signed-off-by: default avatarLiu Xinpeng <liuxp11@chinatelecom.cn>
Tested-by: default avatarMa Wupeng <mawupeng1@huawei.com>
Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/1658916453-26312-1-git-send-email-liuxp11@chinatelecom.cn
parent 06c8580a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment