diff options
author | Michael Neuling <michaelneuling@tenstorrent.com> | 2024-12-13 04:14:20 +0000 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-12-21 21:21:59 +0530 |
commit | 91196d76b7919fefa382b65f2416f4327435e3a1 (patch) | |
tree | 8a945839ceaaa89ff8c3f347f4ceb57cf57f4db5 | |
parent | 8d8cc9507bd79afbe5c29b5d82868269691152f9 (diff) | |
download | opensbi-91196d76b7919fefa382b65f2416f4327435e3a1.zip opensbi-91196d76b7919fefa382b65f2416f4327435e3a1.tar.gz opensbi-91196d76b7919fefa382b65f2416f4327435e3a1.tar.bz2 |
inclue: sbi_utils: Cleanup int vs bool in semihosting_init() definitions
This is needed for a future patches to enable the new C23 language dialect.
Signed-off-by: Michael Neuling <michaelneuling@tenstorrent.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
-rw-r--r-- | include/sbi_utils/serial/semihosting.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi_utils/serial/semihosting.h b/include/sbi_utils/serial/semihosting.h index 8cc4a86..ef4888f 100644 --- a/include/sbi_utils/serial/semihosting.h +++ b/include/sbi_utils/serial/semihosting.h @@ -38,10 +38,10 @@ enum semihosting_open_mode { #ifdef CONFIG_SERIAL_SEMIHOSTING int semihosting_init(void); -int semihosting_enabled(void); +bool semihosting_enabled(void); #else static inline int semihosting_init(void) { return SBI_ENODEV; } -static inline int semihosting_enabled(void) { return 0; } +static inline bool semihosting_enabled(void) { return false; } #endif #endif |