summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/riscv-runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/riscv-runtime.c')
-rw-r--r--drivers/firmware/efi/riscv-runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/riscv-runtime.c b/drivers/firmware/efi/riscv-runtime.c
index 09525fb5c240..01f0f90ea418 100644
--- a/drivers/firmware/efi/riscv-runtime.c
+++ b/drivers/firmware/efi/riscv-runtime.c
@@ -85,7 +85,7 @@ static int __init riscv_enable_runtime_services(void)
efi_memory_desc_t *md;
for_each_efi_memory_desc(md) {
- int md_size = md->num_pages << EFI_PAGE_SHIFT;
+ u64 md_size = md->num_pages << EFI_PAGE_SHIFT;
struct resource *res;
if (!(md->attribute & EFI_MEMORY_SP))