lkml.org 
[lkml]   [2009]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] tpm add default function definitions
    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
    >



    \
     
     \ /
      Last update: 2009-10-26 15:11    [W:0.021 / U:30.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site