Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/cm: Correct typedef and bad line warnings

In include/rdma/ib_cm.h:

Correct a typedef's kernel-doc notation by adding the 'typedef' keyword
to it to avoid a warning.
Add a leading " *" to a kernel-doc line to avoid a warning.

Warning: ib_cm.h:289 function parameter 'ib_cm_handler' not described
in 'int'
Warning: ib_cm.h:289 expecting prototype for ib_cm_handler(). Prototype
was for int() instead
Warning: ib_cm.h:484 bad line: connection message in case duplicates
are received.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://patch.msgid.link/20251112062908.2711007-1-rdunlap@infradead.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Randy Dunlap and committed by
Leon Romanovsky
4e5cba5b 736c5619

+2 -2
+2 -2
include/rdma/ib_cm.h
··· 271 271 #define CM_APR_ATTR_ID cpu_to_be16(0x001A) 272 272 273 273 /** 274 - * ib_cm_handler - User-defined callback to process communication events. 274 + * typedef ib_cm_handler - User-defined callback to process communication events. 275 275 * @cm_id: Communication identifier associated with the reported event. 276 276 * @event: Information about the communication event. 277 277 * ··· 482 482 483 483 /** 484 484 * ib_prepare_cm_mra - Prepares to send a message receipt acknowledgment to a 485 - connection message in case duplicates are received. 485 + * connection message in case duplicates are received. 486 486 * @cm_id: Connection identifier associated with the connection message. 487 487 */ 488 488 int ib_prepare_cm_mra(struct ib_cm_id *cm_id);