diff mbox series

KEYS: trusted: tpm2: use correct function name in kernel-doc

Message ID 20230102204537.4842-1-rdunlap@infradead.org (mailing list archive)
State New, archived
Headers show
Series KEYS: trusted: tpm2: use correct function name in kernel-doc | expand

Commit Message

Randy Dunlap Jan. 2, 2023, 8:45 p.m. UTC
Correct the function name in the kernel-doc notation to prevent
a kernel-doc warning:

security/keys/trusted-keys/trusted_tpm2.c:203: warning: expecting prototype for tpm_buf_append_auth(). Prototype was for tpm2_buf_append_auth() instead

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Mimi Zohar <zohar@linux.ibm.com>
Cc: linux-integrity@vger.kernel.org
Cc: keyrings@vger.kernel.org
Cc: Paul Moore <paul@paul-moore.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
---
 security/keys/trusted-keys/trusted_tpm2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Moore Jan. 6, 2023, 9:20 p.m. UTC | #1
On Mon, Jan 2, 2023 at 3:45 PM Randy Dunlap <rdunlap@infradead.org> wrote:
>
> Correct the function name in the kernel-doc notation to prevent
> a kernel-doc warning:
>
> security/keys/trusted-keys/trusted_tpm2.c:203: warning: expecting prototype for tpm_buf_append_auth(). Prototype was for tpm2_buf_append_auth() instead
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: James Bottomley <jejb@linux.ibm.com>
> Cc: Jarkko Sakkinen <jarkko@kernel.org>
> Cc: Mimi Zohar <zohar@linux.ibm.com>
> Cc: linux-integrity@vger.kernel.org
> Cc: keyrings@vger.kernel.org
> Cc: Paul Moore <paul@paul-moore.com>
> Cc: James Morris <jmorris@namei.org>
> Cc: "Serge E. Hallyn" <serge@hallyn.com>
> ---
>  security/keys/trusted-keys/trusted_tpm2.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Paul Moore <paul@paul-moore.com>

> diff -- a/security/keys/trusted-keys/trusted_tpm2.c b/security/keys/trusted-keys/trusted_tpm2.c
> --- a/security/keys/trusted-keys/trusted_tpm2.c
> +++ b/security/keys/trusted-keys/trusted_tpm2.c
> @@ -186,7 +186,7 @@ int tpm2_key_priv(void *context, size_t
>  }
>
>  /**
> - * tpm_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer.
> + * tpm2_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer.
>   *
>   * @buf: an allocated tpm_buf instance
>   * @session_handle: session handle
diff mbox series

Patch

diff -- a/security/keys/trusted-keys/trusted_tpm2.c b/security/keys/trusted-keys/trusted_tpm2.c
--- a/security/keys/trusted-keys/trusted_tpm2.c
+++ b/security/keys/trusted-keys/trusted_tpm2.c
@@ -186,7 +186,7 @@  int tpm2_key_priv(void *context, size_t
 }
 
 /**
- * tpm_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer.
+ * tpm2_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer.
  *
  * @buf: an allocated tpm_buf instance
  * @session_handle: session handle