Commit 10296cb0 authored by Kylene Jo Hall's avatar Kylene Jo Hall Committed by Linus Torvalds

[PATCH] tpm: tpm_bios fix sparse warnings

Fixing the sparse warnings on the acpi_os_map_memory calls pointed out by
Randy.
Signed-off-by: default avatarKylene Hall <kjhall@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7bcee5b8
...@@ -376,7 +376,7 @@ static int read_log(struct tpm_bios_log *log) ...@@ -376,7 +376,7 @@ static int read_log(struct tpm_bios_log *log)
{ {
struct acpi_tcpa *buff; struct acpi_tcpa *buff;
acpi_status status; acpi_status status;
void *virt; struct acpi_table_header *virt;
if (log->bios_event_log != NULL) { if (log->bios_event_log != NULL) {
printk(KERN_ERR printk(KERN_ERR
...@@ -413,7 +413,7 @@ static int read_log(struct tpm_bios_log *log) ...@@ -413,7 +413,7 @@ static int read_log(struct tpm_bios_log *log)
log->bios_event_log_end = log->bios_event_log + buff->log_max_len; log->bios_event_log_end = log->bios_event_log + buff->log_max_len;
acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, &virt); acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, (void *) &virt);
memcpy(log->bios_event_log, virt, buff->log_max_len); memcpy(log->bios_event_log, virt, buff->log_max_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment