Re: [PATCH 3/9] x86/nmi: Use a macro to initialize NMI descriptors
From: Huang, Kai
Date: Mon Mar 31 2025 - 19:46:49 EST
On Thu, 2025-03-27 at 23:46 +0000, Mehta, Sohil wrote:
> The NMI descriptors for each NMI type are stored in an array. However,
> they are currently initialized using raw numbers, which makes it
> difficult to understand the code.
>
> Introduce a macro to initialize the NMI descriptors using the NMI type
> enum values to make the code more readable.
>
> No functional change.
>
> Signed-off-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>