x86/ucode: Don't cast away const-ness in cmp_patch_id()

Fixes a volation of MISRA rule 11.8.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Andrew Cooper committed 2025-12-12 03:04:48 +00:00
1 parent eb518632cd
commit 7becd32d84
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ static bool __ro_after_init entrysign_mitigiated_in_firmware;
static int cf_check cmp_patch_id(const void *key, const void *elem)
{
const struct patch_digest *pd = elem;
uint32_t patch_id = *(uint32_t *)key;
uint32_t patch_id = *(const uint32_t *)key;
if ( patch_id == pd->patch_id )
return 0;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.