]> err.no Git - linux-2.6/commitdiff
[PATCH] tpm: tpm_bios fix sparse warnings
authorKylene Jo Hall <kjhall@us.ibm.com>
Wed, 1 Feb 2006 11:05:04 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:12 +0000 (08:53 -0800)
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>
drivers/char/tpm/tpm_bios.c

index 22b645b93e02e76981d6c8008431d7a495cf5876..047f213a480ff79c302ed8b2fe65006bdc4681bf 100644 (file)
@@ -376,7 +376,7 @@ static int read_log(struct tpm_bios_log *log)
 {
        struct acpi_tcpa *buff;
        acpi_status status;
-       void *virt;
+       struct acpi_table_header *virt;
 
        if (log->bios_event_log != NULL) {
                printk(KERN_ERR
@@ -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;
 
-       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);