diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2020-11-02 09:13:11 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-03 10:19:01 +0000 |
commit | ba9f1a8dd198b81fd7598326397c5c6dd746b808 (patch) | |
tree | e50b609597d58be95ae2e206a0bae0ad65f1ddd3 | |
parent | 8e7bfda78ebf723aee95674c86b33b6deec9365d (diff) | |
download | chrome-ec-ba9f1a8dd198b81fd7598326397c5c6dd746b808.tar.gz |
test: fix stm32_rtc compilation error
After the atomic functions change, there is a compilation error of
test-stm32_rtc. Remove volatile qualifier, because it is not needed for
atomic functions - 'rtc_fired' is changed only by them.
BUG=b:172079887
BRANCH=none
TEST=make BOARD=bloonchipper test-stm32f_rtc
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I38c48697b0ce1b639dcf767d939bb8dcf1215f79
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2512205
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
-rw-r--r-- | test/stm32f_rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stm32f_rtc.c b/test/stm32f_rtc.c index 52bccabebd..4a09085e4f 100644 --- a/test/stm32f_rtc.c +++ b/test/stm32f_rtc.c @@ -6,7 +6,7 @@ #include "clock-f.h" #include "test_util.h" -static volatile uint32_t rtc_fired; +static uint32_t rtc_fired; static struct rtc_time_reg rtc_irq; static const int rtc_delay_ms = 500; |