The array mm_type_tbl initialization is formatted in a way that the formatting tool can't keep, so disable the formatting on that array initialization.
Signed-off-by: Luca Fancellu <luca.fance...@arm.com> --- docs/misra/exclude-list.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index d48dcf3ac971..b8976bc671a4 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -99,6 +99,19 @@ "rel_path": "arch/x86/cpu/mwait-idle.c", "comment": "Imported from Linux, ignore for now" }, + { + "rel_path": "arch/x86/hvm/mtrr.c", + "comment": "Contains structure formatted in a particular way", + "checkers": "codestyle", + "codestyle": { + "protect": [ + { + "syntax_opening": "static const uint8_t mm_type_tbl", + "syntax_closing": "};" + } + ] + } + }, { "rel_path": "arch/x86/include/asm/alternative-asm.h", "comment": "Includes mostly assembly macro and it's meant to be included only in assembly code", -- 2.34.1