Re: [PATCH] tpm add default function definitions

From: Eric Paris
Date: Tue Oct 27 2009 - 10:08:52 EST


On Mon, Oct 26, 2009 at 10:06 AM, Rajiv Andrade
<srajiv@xxxxxxxxxxxxxxxxxx> wrote:
> Acked-by: Rajiv Andrade <srajiv@xxxxxxxxxxxxxxxxxx>

I don't see this as stable material, but it looks good for -next.

Acked-by: Eric Paris <eparis@xxxxxxxxxx>

>
> Mimi Zohar wrote:
>> Add default tpm_pcr_read/extend function definitions required
>> by IMA/Kconfig changes.
>>
>> Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxx>
>> Cc: Stable Kernel <stable@xxxxxxxxxx>
>> ---
>>  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
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/