From: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, James Morris <jmorris@namei.org>,
Jean-Christophe Dubois <jcd@tribudubois.net>,
David Safford <safford@watson.ibm.com>,
Mimi Zohar <zohar@us.ibm.com>, Stable Kernel <stable@kernel.org>
Subject: Re: [PATCH] tpm add default function definitions
Date: Mon, 26 Oct 2009 12:06:27 -0200 [thread overview]
Message-ID: <4AE5ACE3.30103@linux.vnet.ibm.com> (raw)
In-Reply-To: <1256563579-11014-1-git-send-email-zohar@linux.vnet.ibm.com>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Mimi Zohar wrote:
> Add default tpm_pcr_read/extend function definitions required
> by IMA/Kconfig changes.
>
> Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
> Cc: Stable Kernel <stable@kernel.org>
> ---
> include/linux/tpm.h | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/tpm.h b/include/linux/tpm.h
> index 3338b3f..8eaa8f8 100644
> --- a/include/linux/tpm.h
> +++ b/include/linux/tpm.h
> @@ -31,5 +31,12 @@
>
> extern int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf);
> extern int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash);
> +#else
> +static inline int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf) {
> + return -ENODEV;
> +}
> +static inline int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) {
> + return -ENODEV;
> +}
> #endif
> #endif
>
next prev parent reply other threads:[~2009-10-26 14:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 13:26 [PATCH] tpm add default function definitions Mimi Zohar
2009-10-26 13:26 ` [PATCH] ima: remove ACPI dependency Mimi Zohar
2009-10-27 13:58 ` Eric Paris
2009-10-27 15:59 ` David Safford
2009-10-27 16:36 ` Eric Paris
2009-10-27 20:42 ` David Safford
2009-10-27 20:56 ` Eric Paris
2009-10-28 18:51 ` Rajiv Andrade
2009-10-26 14:06 ` Rajiv Andrade [this message]
2009-10-27 14:08 ` [PATCH] tpm add default function definitions Eric Paris
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=4AE5ACE3.30103@linux.vnet.ibm.com \
--to=srajiv@linux.vnet.ibm.com \
--cc=jcd@tribudubois.net \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=safford@watson.ibm.com \
--cc=stable@kernel.org \
--cc=zohar@linux.vnet.ibm.com \
--cc=zohar@us.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox