diff options
author | H. Peter Anvin <hpa@zytor.com> | 2014-06-27 10:55:24 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-06-27 10:55:24 -0400 |
commit | ba3f35c7ce443c829bd806202ce29fa36d322ff3 (patch) | |
tree | e25416124cfaf059d4e2f38c29f4630a2fc58571 | |
parent | 6a89d71078dad9b1c49ccdf1ffa656fbe36ccd1e (diff) | |
parent | 783ee43118dc773bc8b0342c5b230e017d5a04d0 (diff) |
Merge tag 'efi-urgent' into x86/urgent
* Fix a few compiler warnings (one being a real bug) in the arm64 EFI
code that lots of people are running into and reporting - Catalin Marinas
* Use a cast to avoid a 32-bit overflow issue when generating pstore
filenames - Andrzej Zaborowski
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | drivers/firmware/efi/efi-pstore.c | 2 | ||||
-rw-r--r-- | drivers/firmware/efi/efi.c | 6 | ||||
-rw-r--r-- | drivers/firmware/efi/fdt.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/firmware/efi/efi-pstore.c b/drivers/firmware/efi/efi-pstore.c index 4b9dc836dcf9..e992abc5ef26 100644 --- a/drivers/firmware/efi/efi-pstore.c +++ b/drivers/firmware/efi/efi-pstore.c | |||
@@ -40,7 +40,7 @@ struct pstore_read_data { | |||
40 | static inline u64 generic_id(unsigned long timestamp, | 40 | static inline u64 generic_id(unsigned long timestamp, |
41 | unsigned int part, int count) | 41 | unsigned int part, int count) |
42 | { | 42 | { |
43 | return (timestamp * 100 + part) * 1000 + count; | 43 | return ((u64) timestamp * 100 + part) * 1000 + count; |
44 | } | 44 | } |
45 | 45 | ||
46 | static int efi_pstore_read_func(struct efivar_entry *entry, void *data) | 46 | static int efi_pstore_read_func(struct efivar_entry *entry, void *data) |
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index cd36deb619fa..eff1a2f22f09 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c | |||
@@ -353,10 +353,10 @@ static int __init fdt_find_uefi_params(unsigned long node, const char *uname, | |||
353 | int depth, void *data) | 353 | int depth, void *data) |
354 | { | 354 | { |
355 | struct param_info *info = data; | 355 | struct param_info *info = data; |
356 | void *prop, *dest; | 356 | const void *prop; |
357 | unsigned long len; | 357 | void *dest; |
358 | u64 val; | 358 | u64 val; |
359 | int i; | 359 | int i, len; |
360 | 360 | ||
361 | if (depth != 1 || | 361 | if (depth != 1 || |
362 | (strcmp(uname, "chosen") != 0 && strcmp(uname, "chosen@0") != 0)) | 362 | (strcmp(uname, "chosen") != 0 && strcmp(uname, "chosen@0") != 0)) |
diff --git a/drivers/firmware/efi/fdt.c b/drivers/firmware/efi/fdt.c index 5c6a8e8a9580..82d774161cc9 100644 --- a/drivers/firmware/efi/fdt.c +++ b/drivers/firmware/efi/fdt.c | |||
@@ -63,7 +63,7 @@ static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt, | |||
63 | */ | 63 | */ |
64 | prev = 0; | 64 | prev = 0; |
65 | for (;;) { | 65 | for (;;) { |
66 | const char *type, *name; | 66 | const char *type; |
67 | int len; | 67 | int len; |
68 | 68 | ||
69 | node = fdt_next_node(fdt, prev, NULL); | 69 | node = fdt_next_node(fdt, prev, NULL); |