From 8f1d81b65d62a35485e4db8b08ba8f497c6c4d8e Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 5 Dec 2021 13:47:31 +0000 Subject: [PATCH] Add missing includes of stdbool.h. To ensure we aren't dependent on the order of inclusion. --- app/display.h | 4 +++- app/error.h | 3 ++- app/test.h | 3 ++- lib/print.c | 3 ++- system/smp.h | 3 ++- tests/test_funcs.h | 4 +++- 6 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/display.h b/app/display.h index fb8644f..f419d69 100644 --- a/app/display.h +++ b/app/display.h @@ -5,9 +5,11 @@ * Provides (macro) functions that implement the UI display. * All knowledge about the display layout is encapsulated here. * - * Copyright (C) 2020 Martin Whitaker. + * Copyright (C) 2020-2021 Martin Whitaker. */ +#include + #include "screen.h" #include "print.h" diff --git a/app/error.h b/app/error.h index 96c3ef2..247a4e1 100644 --- a/app/error.h +++ b/app/error.h @@ -4,9 +4,10 @@ /* * Provides functions that can be called by the memory tests to report errors. * - * Copyright (C) 2020 Martin Whitaker. + * Copyright (C) 2020-2021 Martin Whitaker. */ +#include #include #include "test.h" diff --git a/app/test.h b/app/test.h index 0a2b65e..67d2ff5 100644 --- a/app/test.h +++ b/app/test.h @@ -4,9 +4,10 @@ /* * Provides types and variables used when performing the memory tests. * - * Copyright (C) 2020 Martin Whitaker. + * Copyright (C) 2020-2021 Martin Whitaker. */ +#include #include #include "pmem.h" diff --git a/lib/print.c b/lib/print.c index 3a15bcd..bcfb061 100644 --- a/lib/print.c +++ b/lib/print.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 -// Copyright (C) 2020 Martin Whitaker. +// Copyright (C) 2020-2021 Martin Whitaker. +#include #include #include "screen.h" diff --git a/system/smp.h b/system/smp.h index 6fd41d3..2228859 100644 --- a/system/smp.h +++ b/system/smp.h @@ -4,9 +4,10 @@ /* * Provides support for multi-threaded operation. * - * Copyright (C) 2020 Martin Whitaker. + * Copyright (C) 2020-2021 Martin Whitaker. */ +#include #include #include "boot.h" diff --git a/tests/test_funcs.h b/tests/test_funcs.h index 57c3fae..8134c63 100644 --- a/tests/test_funcs.h +++ b/tests/test_funcs.h @@ -5,9 +5,11 @@ * Provides the prototypes for the basic test functions used to implement * the tests. * - * Copyright (C) 2020 Martin Whitaker. + * Copyright (C) 2020-2021 Martin Whitaker. */ +#include + #include "test.h" int test_addr_walk1(int my_vcpu);