lkml.org 
[lkml]   [2012]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tpm: fix tpm_acpi sparse warning on different address spaces
On Sun, Sep 02, 2012 at 09:30:30AM -0700, Dan Carpenter wrote:
> Sparse finds that bug as well. ;)
>
> drivers/acpi/acpica/tbfadt.c:247:15: warning: incorrect type in assignment (different address spaces)
> drivers/acpi/acpica/tbfadt.c:247:15: expected struct acpi_table_header *table
> drivers/acpi/acpica/tbfadt.c:247:15: got void [noderef] <asn:2>*
> drivers/acpi/acpica/tbfadt.c:266:30: warning: incorrect type in argument 1 (different address spaces)
> drivers/acpi/acpica/tbfadt.c:266:30: expected void [noderef] <asn:2>*logical_address
> drivers/acpi/acpica/tbfadt.c:266:30: got struct acpi_table_header *table
>
> It should be memcpy_fromio() probably.

Thanks Dan, that's clearly better. James, I'll resubmit this one
today.

Thanks,
Kent



\
 
 \ /
  Last update: 2012-09-04 19:22    [W:0.051 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site