]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memblock test: fix implicit declaration of function 'isspace'
authorWei Yang <richard.weiyang@gmail.com>
Tue, 6 Aug 2024 01:03:18 +0000 (01:03 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 6 Aug 2024 05:21:25 +0000 (08:21 +0300)
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>
tools/testing/memblock/linux/kernel.h

index c16d9cd2d1aee0b65bbb7cab87b2130f3dd2c545..4d1012d5be6ebeea635322e466bd08b7b60346d6 100644 (file)
@@ -9,5 +9,6 @@
 #include <linux/linkage.h>
 #include <linux/kconfig.h>
 #include <linux/string.h>
+#include <linux/ctype.h>
 
 #endif