memblock test: fix implicit declaration of function 'memparse'

Commit 1e4c64b71c ("mm/memblock: Add "reserve_mem" to reserved named
memory at boot up") introduce the usage of memparse(), which is not
defined in memblock test.

Add the definition and link it to fix the build.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/r/20240806010319.29194-3-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
This commit is contained in:
Wei Yang
2024-08-06 01:03:17 +00:00
committed by Mike Rapoport (Microsoft)
parent 9f76c2ade3
commit a88cde5769
4 changed files with 56 additions and 1 deletions

View File

@@ -8,5 +8,6 @@
#include <linux/printk.h>
#include <linux/linkage.h>
#include <linux/kconfig.h>
#include <linux/string.h>
#endif