| From e95295503c9888fc6600a31a4e0f93aaf0a84283 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Thu, 25 Sep 2025 11:14:23 -0300 |
| Subject: tools/nolibc: add stdbool.h to nolibc includes |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: André Almeida <andrealmeid@igalia.com> |
| |
| [ Upstream commit 2d965c1ae4135ed6f505661458f6dabd39488dac ] |
| |
| Otherwise tests compiled with only "-include nolibc.h" will fail with |
| "error: unknown type name 'bool'", even though a stdbool.h is available |
| from nolibc. |
| |
| Fixes: ae1f550efc11 ("tools/nolibc: add stdbool.h header") |
| Fixes: f2662ec26b26 ("selftests: kselftest: Create ksft_print_dbg_msg()") |
| Reported-by: Mark Brown <broonie@kernel.org> |
| Closes: https://lore.kernel.org/lkml/833f5ae5-190e-47ec-9ad9-127ad166c80c@sirena.org.uk/ |
| Signed-off-by: André Almeida <andrealmeid@igalia.com> |
| [Thomas: add Fixes tags and massage commit message a bit] |
| Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| tools/include/nolibc/nolibc.h | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h |
| index c199ade200c24..d2f5aa085f8e3 100644 |
| --- a/tools/include/nolibc/nolibc.h |
| +++ b/tools/include/nolibc/nolibc.h |
| @@ -116,6 +116,7 @@ |
| #include "sched.h" |
| #include "signal.h" |
| #include "unistd.h" |
| +#include "stdbool.h" |
| #include "stdio.h" |
| #include "stdlib.h" |
| #include "string.h" |
| -- |
| 2.51.0 |
| |