diff options
author | Kylene Jo Hall <kjhall@us.ibm.com> | 2006-02-01 06:05:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:12 -0500 |
commit | 10296cb0b2b0b0eb312f81032216504a64ee675a (patch) | |
tree | 3e2f96690015da1caaa8b70a4811530f4613efdf /drivers/char/tpm | |
parent | 7bcee5b86a8d9f8a0f2c1848fd9abd675e09e969 (diff) |
[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: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm')
-rw-r--r-- | drivers/char/tpm/tpm_bios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_bios.c b/drivers/char/tpm/tpm_bios.c index 22b645b93e02..047f213a480f 100644 --- a/drivers/char/tpm/tpm_bios.c +++ b/drivers/char/tpm/tpm_bios.c | |||
@@ -376,7 +376,7 @@ static int read_log(struct tpm_bios_log *log) | |||
376 | { | 376 | { |
377 | struct acpi_tcpa *buff; | 377 | struct acpi_tcpa *buff; |
378 | acpi_status status; | 378 | acpi_status status; |
379 | void *virt; | 379 | struct acpi_table_header *virt; |
380 | 380 | ||
381 | if (log->bios_event_log != NULL) { | 381 | if (log->bios_event_log != NULL) { |
382 | printk(KERN_ERR | 382 | printk(KERN_ERR |
@@ -413,7 +413,7 @@ static int read_log(struct tpm_bios_log *log) | |||
413 | 413 | ||
414 | log->bios_event_log_end = log->bios_event_log + buff->log_max_len; | 414 | log->bios_event_log_end = log->bios_event_log + buff->log_max_len; |
415 | 415 | ||
416 | acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, &virt); | 416 | acpi_os_map_memory(buff->log_start_addr, buff->log_max_len, (void *) &virt); |
417 | 417 | ||
418 | memcpy(log->bios_event_log, virt, buff->log_max_len); | 418 | memcpy(log->bios_event_log, virt, buff->log_max_len); |
419 | 419 | ||