Re: [PATCH v4 3/6] x86/microcode/intel: Define staging state struct

From: Dave Hansen
Date: Wed Aug 13 2025 - 14:26:01 EST


> +/**
> + * struct staging_state - Tracks the current staging process state
> + *
> + * @mmio_base: MMIO base address for staging
> + * @ucode_ptr: Pointer to the microcode image
> + * @ucode_len: Total size of the microcode image
> + * @chunk_size: Size of each data piece
> + * @bytes_sent: Total bytes transmitted so far
> + * @offset: Current offset in the microcode image
> + * @state: Current state of the staging process
> + */
> +struct staging_state {
> + void __iomem *mmio_base;
> + void *ucode_ptr;

This is assigned a single time to ucode_patch_late. Shouldn't it share
the same type? Or, maybe not even get a structure member since it can
only have one value.