mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
5fbb3e9da9
commit
b736154e89
1 file changed
+3
-3
@@ -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 */
|
||||
|
||||