From c6f1027ecabe19de3dd25d6c7a8a8070a78116eb Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Tue, 16 Nov 2021 12:14:58 -0500 Subject: [PATCH] shell: do not alias atomic_t Previously, a `uint32_t` was aliased as an `atomic_t`. However, with #39531, `atomic_t` is now a `long` under the hood, which is 64-bit on 64-bit platforms. Fixes #40369 Signed-off-by: Christopher Friedt --- include/shell/shell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shell/shell.h b/include/shell/shell.h index d60c8ff8362c6a..d1ab41b3765b12 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -659,7 +659,7 @@ BUILD_ASSERT((sizeof(struct shell_backend_ctx_flags) == sizeof(uint32_t)), * @internal @brief Union for internal shell usage. */ union shell_backend_cfg { - uint32_t value; + atomic_t value; struct shell_backend_config_flags flags; };