linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings
@ 2024-01-23  5:33 Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2024-01-23  5:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	Jeff Johnson

Use the documented notation for nested struct members.
Add a Return: comment for qcom_smp2p_intr().

These changes prevent these kernel-doc warnings:

smp2p.c:78: warning: Excess struct member 'name' description in 'smp2p_smem_item'
smp2p.c:78: warning: Excess struct member 'value' description in 'smp2p_smem_item'
smp2p.c:280: warning: No description found for return value of 'qcom_smp2p_intr'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: Jeff Johnson <quic_jjohnson@quicinc.com>
---
v2: use Return: instead of Returns: for consistency with documentation
    (Jeff Johnson)

 drivers/soc/qcom/smp2p.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff -- a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c
--- a/drivers/soc/qcom/smp2p.c
+++ b/drivers/soc/qcom/smp2p.c
@@ -58,8 +58,8 @@
  * @valid_entries:	number of allocated entries
  * @flags:
  * @entries:		individual communication entries
- *     @name:		name of the entry
- *     @value:		content of the entry
+ * @entries.name:	name of the entry
+ * @entries.value:	content of the entry
  */
 struct smp2p_smem_item {
 	u32 magic;
@@ -275,6 +275,8 @@ static void qcom_smp2p_notify_in(struct
  *
  * Handle notifications from the remote side to handle newly allocated entries
  * or any changes to the state bits of existing entries.
+ *
+ * Return: %IRQ_HANDLED
  */
 static irqreturn_t qcom_smp2p_intr(int irq, void *data)
 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings
@ 2024-01-23  5:33 Randy Dunlap
  2024-01-23  5:35 ` Randy Dunlap
  2024-01-27 22:34 ` Bjorn Andersson
  0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2024-01-23  5:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Bjorn Andersson, Konrad Dybcio, linux-arm-msm,
	Jeff Johnson

Use the documented notation for nested struct members.
Add a Return: comment for qcom_smp2p_intr().

These changes prevent these kernel-doc warnings:

smp2p.c:78: warning: Excess struct member 'name' description in 'smp2p_smem_item'
smp2p.c:78: warning: Excess struct member 'value' description in 'smp2p_smem_item'
smp2p.c:280: warning: No description found for return value of 'qcom_smp2p_intr'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: Jeff Johnson <quic_jjohnson@quicinc.com>
---
v2: use Return: instead of Returns: for consistency with documentation
    (Jeff Johnson)

 drivers/soc/qcom/smp2p.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff -- a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c
--- a/drivers/soc/qcom/smp2p.c
+++ b/drivers/soc/qcom/smp2p.c
@@ -58,8 +58,8 @@
  * @valid_entries:	number of allocated entries
  * @flags:
  * @entries:		individual communication entries
- *     @name:		name of the entry
- *     @value:		content of the entry
+ * @entries.name:	name of the entry
+ * @entries.value:	content of the entry
  */
 struct smp2p_smem_item {
 	u32 magic;
@@ -275,6 +275,8 @@ static void qcom_smp2p_notify_in(struct
  *
  * Handle notifications from the remote side to handle newly allocated entries
  * or any changes to the state bits of existing entries.
+ *
+ * Return: %IRQ_HANDLED
  */
 static irqreturn_t qcom_smp2p_intr(int irq, void *data)
 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings
  2024-01-23  5:33 [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings Randy Dunlap
@ 2024-01-23  5:35 ` Randy Dunlap
  2024-01-27 22:34 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2024-01-23  5:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, Jeff Johnson



On 1/22/24 21:33, Randy Dunlap wrote:
> Use the documented notation for nested struct members.
> Add a Return: comment for qcom_smp2p_intr().
> 
> These changes prevent these kernel-doc warnings:
> 

Sorry about the duplicate v2 emails.
pebkac :(

-- 
#Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings
  2024-01-23  5:33 [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings Randy Dunlap
  2024-01-23  5:35 ` Randy Dunlap
@ 2024-01-27 22:34 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2024-01-27 22:34 UTC (permalink / raw)
  To: linux-kernel, Randy Dunlap; +Cc: Konrad Dybcio, linux-arm-msm, Jeff Johnson


On Mon, 22 Jan 2024 21:33:29 -0800, Randy Dunlap wrote:
> Use the documented notation for nested struct members.
> Add a Return: comment for qcom_smp2p_intr().
> 
> These changes prevent these kernel-doc warnings:
> 
> smp2p.c:78: warning: Excess struct member 'name' description in 'smp2p_smem_item'
> smp2p.c:78: warning: Excess struct member 'value' description in 'smp2p_smem_item'
> smp2p.c:280: warning: No description found for return value of 'qcom_smp2p_intr'
> 
> [...]

Applied, thanks!

[1/1] soc: qcom: smp2p: fix all kernel-doc warnings
      commit: 4abcc42a3f874b515c27bf2d33f1c1d567afcf7f

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-27 22:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23  5:33 [PATCH v2] soc: qcom: smp2p: fix all kernel-doc warnings Randy Dunlap
2024-01-23  5:35 ` Randy Dunlap
2024-01-27 22:34 ` Bjorn Andersson
  -- strict thread matches above, loose matches on Subject: below --
2024-01-23  5:33 Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).