]> xenbits.xensource.com Git - xen.git/commit
x86/mce: Move MC_NCLASSES into the enum mctelem_class
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Fri, 6 Oct 2023 08:26:10 +0000 (10:26 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 Oct 2023 16:10:14 +0000 (16:10 +0000)
commit6386f5585c5afada8b353e4cc46eaf4a0be2b7b2
treeeb1302fa80ec53840c133d7b4c8502bfc0fb23ba
parenta944636478e5d8db143920de8db7c4609a44fe8c
x86/mce: Move MC_NCLASSES into the enum mctelem_class

The definition of MC_NCLASSES contained a violation of MISRA C:2012
Rule 10.1, therefore by moving it as an enumeration constant resolves the
violation and makes it more resilient to possible additions to that enum.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/mcheck/mctelem.c
xen/arch/x86/cpu/mcheck/mctelem.h