xen/efi: address violations of MISRA C:2012 Rule 11.8

The xen sources contain violations of MISRA C:2012 Rule 11.8 whose
headline states:
"A conversion shall not remove any const, volatile or _Atomic qualification
from the type pointed to by a pointer".

Add missing const qualifiers in casts.
The variables are originally const-qualified.
There's no reason to drop the qualifiers.

Signed-off-by: Maria Celeste Cesario  <maria.celeste.cesario@bugseng.com>
Signed-off-by: Simone Ballarin  <simone.ballarin@bugseng.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Maria Celeste Cesario authored and Jan Beulich committed 2023-12-18 15:21:17 +01:00
1 parent 5fbb3e9da9
commit b736154e89
1 file changed
+3 -3
+3 -3
View File
@@ -1248,10 +1248,10 @@ static void __init efi_exit_boot(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *Syste
#endif
/* Adjust pointers into EFI. */
efi_ct = (void *)efi_ct + DIRECTMAP_VIRT_START;
efi_rs = (void *)efi_rs + DIRECTMAP_VIRT_START;
efi_ct = (const void *)efi_ct + DIRECTMAP_VIRT_START;
efi_rs = (const void *)efi_rs + DIRECTMAP_VIRT_START;
efi_memmap = (void *)efi_memmap + DIRECTMAP_VIRT_START;
efi_fw_vendor = (void *)efi_fw_vendor + DIRECTMAP_VIRT_START;
efi_fw_vendor = (const void *)efi_fw_vendor + DIRECTMAP_VIRT_START;
}
/* SAF-1-safe */
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.