Skip to contentSkip to conversation

linux-next: build warning after merge of the rdma-fixes tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 4, 2020 – Nov 5, 2020

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

Hi all,

After merging the rdma-fixes tree, today's linux-next build (htmldocs) produced this warning:

drivers/infiniband/ulp/srpt/ib_srpt.c:630: warning: Function parameter or member 'port_cnt' not described in 'srpt_unregister_mad_agent'

Introduced by commit

372a1786283e ("IB/srpt: Fix memory leak in srpt_add_one")

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the rdma-fixes tree, today's linux-next build (htmldocs) produced this warning:

drivers/infiniband/ulp/srpt/ib_srpt.c:630: warning: Function parameter or member 'port_cnt' not described in 'srpt_unregister_mad_agent'

Introduced by commit

372a1786283e ("IB/srpt: Fix memory leak in srpt_add_one")

I patched it, thanks

Jason

From 21fcdeec09ff461b2f9a9ef4fcc3a136249e58a1 Mon Sep 17 00:00:00 2001
From: Jason Gunthorpe <[email protected]>
Date: Thu, 5 Nov 2020 11:38:29 -0400
Subject: [PATCH] RDMA/srpt: Fix typo in srpt_unregister_mad_agent docstring

htmldocs fails with:

drivers/infiniband/ulp/srpt/ib_srpt.c:630: warning: Function parameter or member 'port_cnt' not described in 'srpt_unregister_mad_agent'

Fixes 372a1786283e ("IB/srpt: Fix memory leak in srpt_add_one")
---
 drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/ulp/srpt/ib_srpt.c +1 -1
index 1b096305de1a45..53a8becac82761 100644
@@ -622,7 +622,7 @@ static int srpt_refresh_port(struct srpt_port *sport)
 /**
  * srpt_unregister_mad_agent - unregister MAD callback functions
  * @sdev: SRPT HCA pointer.
- * #port_cnt: number of ports with registered MAD
+ * @port_cnt: number of ports with registered MAD
  *
  * Note: It is safe to call this function more than once for the same device.
  */
Signature · 1 line
2.28.0