From c43f2df5d4637cc455ac7bd3a99caa88f4445988 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sat, 19 Oct 2024 21:03:12 +0100 Subject: [PATCH] misc: Fixed a couple more clang-tidy lints --- .clang-tidy | 2 +- src/target/adiv5.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index d82f39f7b3a..46a746ecb1c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: 'bugprone-*,cert-*,clang-analyzer-*,misc-*,modernize-*,portability-*,performance-*,readability-*,-readability-magic-numbers,-readability-braces-around-statements,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-modernize-macro-to-enum,-bugprone-easily-swappable-parameters,-misc-include-cleaner,-misc-no-recursion' +Checks: 'bugprone-*,cert-*,clang-analyzer-*,misc-*,modernize-*,portability-*,performance-*,readability-*,-readability-magic-numbers,-readability-braces-around-statements,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-modernize-macro-to-enum,-bugprone-easily-swappable-parameters,-misc-include-cleaner,-misc-no-recursion,-misc-header-include-cycle' FormatStyle: 'none' HeaderFilterRegex: '(src|upgrade)/.+' #AnalyzeTemporaryDtors: false diff --git a/src/target/adiv5.h b/src/target/adiv5.h index e9ff5fc8eea..8e15d8e4702 100644 --- a/src/target/adiv5.h +++ b/src/target/adiv5.h @@ -85,7 +85,7 @@ #define ADIV5_DP_CTRLSTAT_CDBGRSTREQ (1U << 26U) /* Bits 25:24 - Reserved */ /* Bits 23:12 - TRNCNT */ -#define ADIV5_DP_CTRLSTAT_TRNCNT(x) ((x & 0xfffU) << 12U) +#define ADIV5_DP_CTRLSTAT_TRNCNT(x) (((x)&0xfffU) << 12U) /* Bits 11:8 - MASKLANE */ #define ADIV5_DP_CTRLSTAT_MASKLANE /* Bits 7:6 - Reserved in JTAG-DP */