From: Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: Tomas Winkler <tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] tpm/tpm-interface: place kdoc just above tpm_pcr_extend
Date: Thu, 3 Nov 2016 23:22:31 -0600 [thread overview]
Message-ID: <20161104052231.kwclspdmpyml7alt@intel.com> (raw)
In-Reply-To: <20161102100220.v2nlbf767sticcp7-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
On Wed, Nov 02, 2016 at 04:02:20AM -0600, Jarkko Sakkinen wrote:
> On Tue, Nov 01, 2016 at 03:05:13AM +0200, Tomas Winkler wrote:
> > Place kdoc just above tpm_pcr_extend so it can be parsed
> > correctly.
> >
> > Signed-off-by: Tomas Winkler <tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
>
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
I applied this although I edited the short description (stripped
away "/tpm-interface".
/Jarkko
>
> /Jarkko
>
> > ---
> > drivers/char/tpm/tpm-interface.c | 16 ++++++++--------
> > 1 file changed, 8 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
> > index cb0e57ee053d..d496a6b26a45 100644
> > --- a/drivers/char/tpm/tpm-interface.c
> > +++ b/drivers/char/tpm/tpm-interface.c
> > @@ -731,6 +731,14 @@ int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf)
> > }
> > EXPORT_SYMBOL_GPL(tpm_pcr_read);
> >
> > +#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
> > +#define EXTEND_PCR_RESULT_SIZE 34
> > +static const struct tpm_input_header pcrextend_header = {
> > + .tag = TPM_TAG_RQU_COMMAND,
> > + .length = cpu_to_be32(34),
> > + .ordinal = TPM_ORD_PCR_EXTEND
> > +};
> > +
> > /**
> > * tpm_pcr_extend - extend pcr value with hash
> > * @chip_num: tpm idx # or AN&
> > @@ -741,14 +749,6 @@ EXPORT_SYMBOL_GPL(tpm_pcr_read);
> > * isn't, protect against the chip disappearing, by incrementing
> > * the module usage count.
> > */
> > -#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
> > -#define EXTEND_PCR_RESULT_SIZE 34
> > -static const struct tpm_input_header pcrextend_header = {
> > - .tag = TPM_TAG_RQU_COMMAND,
> > - .length = cpu_to_be32(34),
> > - .ordinal = TPM_ORD_PCR_EXTEND
> > -};
> > -
> > int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash)
> > {
> > struct tpm_cmd_t cmd;
> > --
> > 2.7.4
> >
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
WARNING: multiple messages have this Message-ID (diff)
From: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
To: Tomas Winkler <tomas.winkler@intel.com>
Cc: tpmdd-devel@lists.sourceforge.net,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] tpm/tpm-interface: place kdoc just above tpm_pcr_extend
Date: Thu, 3 Nov 2016 23:22:31 -0600 [thread overview]
Message-ID: <20161104052231.kwclspdmpyml7alt@intel.com> (raw)
In-Reply-To: <20161102100220.v2nlbf767sticcp7@intel.com>
On Wed, Nov 02, 2016 at 04:02:20AM -0600, Jarkko Sakkinen wrote:
> On Tue, Nov 01, 2016 at 03:05:13AM +0200, Tomas Winkler wrote:
> > Place kdoc just above tpm_pcr_extend so it can be parsed
> > correctly.
> >
> > Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
>
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
I applied this although I edited the short description (stripped
away "/tpm-interface".
/Jarkko
>
> /Jarkko
>
> > ---
> > drivers/char/tpm/tpm-interface.c | 16 ++++++++--------
> > 1 file changed, 8 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
> > index cb0e57ee053d..d496a6b26a45 100644
> > --- a/drivers/char/tpm/tpm-interface.c
> > +++ b/drivers/char/tpm/tpm-interface.c
> > @@ -731,6 +731,14 @@ int tpm_pcr_read(u32 chip_num, int pcr_idx, u8 *res_buf)
> > }
> > EXPORT_SYMBOL_GPL(tpm_pcr_read);
> >
> > +#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
> > +#define EXTEND_PCR_RESULT_SIZE 34
> > +static const struct tpm_input_header pcrextend_header = {
> > + .tag = TPM_TAG_RQU_COMMAND,
> > + .length = cpu_to_be32(34),
> > + .ordinal = TPM_ORD_PCR_EXTEND
> > +};
> > +
> > /**
> > * tpm_pcr_extend - extend pcr value with hash
> > * @chip_num: tpm idx # or AN&
> > @@ -741,14 +749,6 @@ EXPORT_SYMBOL_GPL(tpm_pcr_read);
> > * isn't, protect against the chip disappearing, by incrementing
> > * the module usage count.
> > */
> > -#define TPM_ORD_PCR_EXTEND cpu_to_be32(20)
> > -#define EXTEND_PCR_RESULT_SIZE 34
> > -static const struct tpm_input_header pcrextend_header = {
> > - .tag = TPM_TAG_RQU_COMMAND,
> > - .length = cpu_to_be32(34),
> > - .ordinal = TPM_ORD_PCR_EXTEND
> > -};
> > -
> > int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash)
> > {
> > struct tpm_cmd_t cmd;
> > --
> > 2.7.4
> >
next prev parent reply other threads:[~2016-11-04 5:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 1:05 [PATCH 0/2] tpm: fix few kdoc error Tomas Winkler
2016-11-01 1:05 ` Tomas Winkler
[not found] ` <1477962314-26763-1-git-send-email-tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-01 1:05 ` [PATCH 1/2] tpm/tpm-interface: place kdoc just above tpm_pcr_extend Tomas Winkler
2016-11-01 1:05 ` Tomas Winkler
2016-11-02 10:02 ` Jarkko Sakkinen
[not found] ` <20161102100220.v2nlbf767sticcp7-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-04 5:22 ` Jarkko Sakkinen [this message]
2016-11-04 5:22 ` Jarkko Sakkinen
2016-11-01 1:05 ` [PATCH 2/2] tpm/tpm2-chip: fix kdoc errors Tomas Winkler
2016-11-01 1:05 ` Tomas Winkler
[not found] ` <1477962314-26763-3-git-send-email-tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-11-04 4:25 ` Jarkko Sakkinen
2016-11-04 4:25 ` Jarkko Sakkinen
2016-11-14 13:05 ` Winkler, Tomas
2016-11-14 21:30 ` Jarkko Sakkinen
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=20161104052231.kwclspdmpyml7alt@intel.com \
--to=jarkko.sakkinen-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=tomas.winkler-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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.