x86/ucode/intel: Adjust microcode_sanity_check() to not take void *
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Mar 2020 16:03:22 +0000 (16:03 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 13:00:12 +0000 (14:00 +0100)
commitdd6d059e25880aa59f2fc68446b6978aabc25bec
tree10083774bbb14d53b3b1c07009bbaadf95d2ad90
parentbe9474b55f5b3d1409d0ac1ea17c35743d8e9c8a
x86/ucode/intel: Adjust microcode_sanity_check() to not take void *

microcode_sanity_check()'s callers actually call it with a mixture of
microcode_intel(/patch) and microcode_header_intel pointers, which is fragile.

Rework it to take struct microcode_patch *, which in turn requires
microcode_update_match()'s type to be altered.

No functional change - compiled binary is identical.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/microcode/intel.c