Skip to contentSkip to conversation

tpm: fix kdoc for tpm2_flush_context_cmd()

PATCH In review Tomas Winkler 2 participants 4 messages Oct 26, 2018 – Oct 30, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 tpm: fix kdoc for tpm2_flush_context_cmd()

kdoc for tpm2_flush_context_cmd() was off.

Fixes 9aa36b399a50 ("tpm: export tpm2_flush_context_cmd")'

---
V2: drop 'commit' from Fixes:
V3: Align arguments with tab.

 drivers/char/tpm/tpm2-cmd.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/char/tpm/tpm2-cmd.c +3 -4
index ae86fb0218ab..a6bec13afa69 100644
@@ -342,11 +342,10 @@ int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
 
 /**
  * tpm2_flush_context_cmd() - execute a TPM2_FlushContext command
- * @chip: TPM chip to use
- * @payload: the key data in clear and encrypted form
- * @options: authentication values and other options
+ * @chip:	TPM chip to use
+ * @handle:	context handle
+ * @flags:	tpm transmit flags - bitmap
  *
- * Return: same as with tpm_transmit_cmd
  */
 void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle,
 			    unsigned int flags)
Signature · 1 line
2.14.5
#1 lore raw

PATCH 1/1 tpm: tpm_ibmvtpm: fix kdoc warnings

Remove redundant lines in the kdoc:

Fixes kdoc warnings:

drivers/char/tpm/tpm_ibmvtpm.c:42: warning: Cannot understand *
on line 42 - I thought it was a doc line
drivers/char/tpm/tpm_ibmvtpm.c:57: warning: Cannot understand *
on line 57 - I thought it was a doc line

---
 drivers/char/tpm/tpm_ibmvtpm.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/char/tpm/tpm_ibmvtpm.c +2 -4
index 25f6e2665385..07b5a487d0c8 100644
@@ -39,8 +39,7 @@ static const struct vio_device_id tpm_ibmvtpm_device_table[] = {
 MODULE_DEVICE_TABLE(vio, tpm_ibmvtpm_device_table);
 
 /**
- *
- * ibmvtpm_send_crq_word - Send a CRQ request
+ * ibmvtpm_send_crq_word() - Send a CRQ request
  * @vdev:	vio device struct
  * @w1:		pre-constructed first word of tpm crq (second word is reserved)
  *
@@ -54,8 +53,7 @@ static int ibmvtpm_send_crq_word(struct vio_dev *vdev, u64 w1)
 }
 
 /**
- *
- * ibmvtpm_send_crq - Send a CRQ request
+ * ibmvtpm_send_crq() - Send a CRQ request
  *
  * @vdev:	vio device struct
  * @valid:	Valid field
Signature · 1 line
2.14.5
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH] tpm: tpm_ibmvtpm: fix kdoc warnings

Quoted 42 lines · Tomas Winkler

Remove redundant lines in the kdoc:

Fixes kdoc warnings:

drivers/char/tpm/tpm_ibmvtpm.c:42: warning: Cannot understand * on line 42 - I thought it was a doc line drivers/char/tpm/tpm_ibmvtpm.c:57: warning: Cannot understand * on line 57 - I thought it was a doc line

---
drivers/char/tpm/tpm_ibmvtpm.c | 6 ++----

1 file changed, 2 insertions(+), 4 deletions(-)
drivers/char/tpm/tpm_ibmvtpm.c +2 -4
index 25f6e2665385..07b5a487d0c8 100644
@@ -39,8 +39,7 @@ static const struct vio_device_id tpm_ibmvtpm_device_table[] = {
 MODULE_DEVICE_TABLE(vio, tpm_ibmvtpm_device_table);
 
 /**
- *
- * ibmvtpm_send_crq_word - Send a CRQ request
+ * ibmvtpm_send_crq_word() - Send a CRQ request
 * @vdev:	vio device struct
 * @w1:		pre-constructed first word of tpm crq (second word is reserved)
 *
@@ -54,8 +53,7 @@ static int ibmvtpm_send_crq_word(struct vio_dev *vdev, u64 w1)
 }
 
 /**
- *
- * ibmvtpm_send_crq - Send a CRQ request
+ * ibmvtpm_send_crq() - Send a CRQ request
 *
 * @vdev:	vio device struct
 * @valid:	Valid field
Signature · 1 line
2.14.5

/Jarkko

Reviewed-by on v3 1/1
#3 lore raw
In reply to Tomas Winkler
Quoted 33 lines · Tomas Winkler

kdoc for tpm2_flush_context_cmd() was off.

Fixes 9aa36b399a50 ("tpm: export tpm2_flush_context_cmd")'

---
V2: drop 'commit' from Fixes:
V3: Align arguments with tab.
drivers/char/tpm/tpm2-cmd.c | 7 +++----

1 file changed, 3 insertions(+), 4 deletions(-)
drivers/char/tpm/tpm2-cmd.c +3 -4
index ae86fb0218ab..a6bec13afa69 100644
@@ -342,11 +342,10 @@ int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
 
 /**
 * tpm2_flush_context_cmd() - execute a TPM2_FlushContext command
- * @chip: TPM chip to use
- * @payload: the key data in clear and encrypted form
- * @options: authentication values and other options
+ * @chip:	TPM chip to use
+ * @handle:	context handle
+ * @flags:	tpm transmit flags - bitmap
 *
- * Return: same as with tpm_transmit_cmd
 */
 void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle,
 			    unsigned int flags)
Signature · 1 line
2.14.5

Great, thank you.

/Jarkko