Skip to content

Commit 18af9f0

Browse files
peter-mitsisnashif
authored andcommitted
kernel: Add missing stdbool.h to kernel/stats.h
The structure k_cycle_stats uses the bool type. Consequently it should include the stdbool.h header file. Fixes #55972 Signed-off-by: Peter Mitsis <[email protected]>
1 parent 8851a83 commit 18af9f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/zephyr/kernel/stats.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Intel Corporation
2+
* Copyright (c) 2021,2023, Intel Corporation
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -8,6 +8,7 @@
88
#define ZEPHYR_INCLUDE_KERNEL_STATS_H_
99

1010
#include <stdint.h>
11+
#include <stdbool.h>
1112

1213
/*
1314
* [k_cycle_stats] is used to track internal statistics about both thread

0 commit comments

Comments
 (0)