l30013671 / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
e293be
diff -up ./drivers/firmware/efi/efi.c.zu1 ./drivers/firmware/efi/efi.c
e293be
--- ./drivers/firmware/efi/efi.c.zu1	2018-03-22 06:40:12.000000000 +0900
e293be
+++ ./drivers/firmware/efi/efi.c	2018-04-16 16:48:08.000000000 +0900
e293be
@@ -277,7 +277,7 @@ int __init efi_mem_desc_lookup(u64 phys_
e293be
 				map->nr_map * map->desc_size);
e293be
 	if (!memmap) {
e293be
 		pr_err_once("early_memremap(%#llx, %zu) failed.\n",
e293be
-			    (unsigned long long) map->phys_map, map->nr_map * map->desc_size);
e293be
+			    (unsigned long long) map->phys_map, (size_t) (map->nr_map * map->desc_size));
e293be
 		return -ENOMEM;
e293be
 	}
e293be
 
e293be
diff -up ./drivers/target/target_core_user.c.tgt1 ./drivers/target/target_core_user.c
e293be
--- ./drivers/target/target_core_user.c.tgt1	2018-03-22 06:40:12.000000000 +0900
e293be
+++ ./drivers/target/target_core_user.c	2018-04-18 18:44:51.000000000 +0900
e293be
@@ -551,7 +551,7 @@ static bool is_ring_space_avail(struct t
e293be
 
e293be
 	space = spc_free(cmd_head, udev->cmdr_last_cleaned, udev->cmdr_size);
e293be
 	if (space < cmd_needed) {
e293be
-		pr_debug("no cmd space: %u %u %u %lu %lu\n", cmd_head,
e293be
+		pr_debug("no cmd space: %u %u %u %zu %zu\n", cmd_head,
e293be
 		       udev->cmdr_last_cleaned, udev->cmdr_size, cmd_needed, space);
e293be
 		return false;
e293be
 	}