diff options
| author | Wei Yang <richard.weiyang@gmail.com> | 2024-08-06 01:03:17 +0000 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2024-08-06 08:21:25 +0300 |
| commit | a88cde5769d523e4ae6aad61237e4a5f6bd2309a (patch) | |
| tree | dd9def9633a688b9b3f8c6d0aa1a5b57a557aec4 /tools/include/linux | |
| parent | 9f76c2ade323121f9006f6a529e0795317e16b5c (diff) | |
| download | linux-a88cde5769d523e4ae6aad61237e4a5f6bd2309a.tar.gz linux-a88cde5769d523e4ae6aad61237e4a5f6bd2309a.tar.bz2 linux-a88cde5769d523e4ae6aad61237e4a5f6bd2309a.zip | |
memblock test: fix implicit declaration of function 'memparse'
Commit 1e4c64b71c9b ("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>
Diffstat (limited to 'tools/include/linux')
| -rw-r--r-- | tools/include/linux/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h index db5c99318c79..fb8eda3019b5 100644 --- a/tools/include/linux/string.h +++ b/tools/include/linux/string.h @@ -47,4 +47,5 @@ extern char * __must_check skip_spaces(const char *); extern char *strim(char *); extern void *memchr_inv(const void *start, int c, size_t bytes); +extern unsigned long long memparse(const char *ptr, char **retptr); #endif /* _TOOLS_LINUX_STRING_H_ */ |
