From: Kent Yoder <key@linux.vnet.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [security:next 2/13] drivers/char/tpm/tpm_acpi.c:98:14: sparse: incorrect type in assignment (di
Date: Thu, 30 Aug 2012 14:32:34 +0000 [thread overview]
Message-ID: <20120830143234.GA4991@linux.vnet.ibm.com> (raw)
Hi Fengguang,
On Mon, Aug 27, 2012 at 04:02:30PM -0700, Fengguang Wu wrote:
> Hi Kent,
>
> FYI, there are new sparse warnings show up in
>
> tree: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
> head: f84fdff0fdcda7e509ce530e0ee612233a2104fb
> commit: e5dcd87fee12ed64a9ea911102025facc0c7d10c [2/13] tpm: modularize event log collection
> config: i386-allmodconfig (attached as .config)
>
> All sparse warnings:
>
> + drivers/char/tpm/tpm_acpi.c:98:14: sparse: incorrect type in assignment (different address spaces)
> drivers/char/tpm/tpm_acpi.c:98:14: expected struct acpi_table_header *virt
> drivers/char/tpm/tpm_acpi.c:98:14: got void [noderef] <asn:2>*
> + drivers/char/tpm/tpm_acpi.c:102:30: sparse: incorrect type in argument 1 (different address spaces)
> drivers/char/tpm/tpm_acpi.c:102:30: expected void [noderef] <asn:2>*logical_address
> drivers/char/tpm/tpm_acpi.c:102:30: got struct acpi_table_header *virt
>
> vim +98 drivers/char/tpm/tpm_acpi.c
> 95
> 96 log->bios_event_log_end = log->bios_event_log + len;
> 97
> > 98 virt = acpi_os_map_memory(start, len);
> 99
> 100 memcpy(log->bios_event_log, virt, len);
> 101
This code is now slightly different based on James' lastest updates,
so I'll send the update to James for this.
Thanks,
Kent
reply other threads:[~2012-08-30 14:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120830143234.GA4991@linux.vnet.ibm.com \
--to=key@linux.vnet.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.