summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-08-06 01:03:18 +0000
committerMike Rapoport (Microsoft) <rppt@kernel.org>2024-08-06 08:21:25 +0300
commit8ac13bc7c266102f1068faafa5314522b68ebe65 (patch)
tree976dcedf9c154c73bff43d408b7eec06b0ebd9d0
parenta88cde5769d523e4ae6aad61237e4a5f6bd2309a (diff)
memblock test: fix implicit declaration of function 'isspace'
Commit 1e4c64b71c9b ("mm/memblock: Add "reserve_mem" to reserved named memory at boot up") introduce usage of isspace(). Let's include <linux/ctype.h> in kernel.h to fix this. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Link: https://lore.kernel.org/r/20240806010319.29194-4-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
-rw-r--r--tools/testing/memblock/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/memblock/linux/kernel.h b/tools/testing/memblock/linux/kernel.h
index c16d9cd2d1ae..4d1012d5be6e 100644
--- a/tools/testing/memblock/linux/kernel.h
+++ b/tools/testing/memblock/linux/kernel.h
@@ -9,5 +9,6 @@
#include <linux/linkage.h>
#include <linux/kconfig.h>
#include <linux/string.h>
+#include <linux/ctype.h>
#endif