* [PATCH] NTB: fix kernel-doc warnings in ntb.h
@ 2026-03-12 5:14 Randy Dunlap
2026-03-12 17:11 ` Dave Jiang
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2026-03-12 5:14 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Jon Mason, Dave Jiang, Allen Hubbe, ntb
Correct a function name and function parameter name to avoid
kernel-doc warnings:
Warning: include/linux/ntb.h:575 expecting prototype for
ntb_default_port_count(). Prototype was for ntb_default_peer_port_count()
instead
Warning: include/linux/ntb.h:590 function parameter 'pidx' not
described in 'ntb_default_peer_port_number'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Jon Mason <jdmason@kudzu.us>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Allen Hubbe <allenbh@gmail.com>
Cc: ntb@lists.linux.dev
include/linux/ntb.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-next-20260311.orig/include/linux/ntb.h
+++ linux-next-20260311/include/linux/ntb.h
@@ -563,7 +563,7 @@ void ntb_msg_event(struct ntb_dev *ntb);
int ntb_default_port_number(struct ntb_dev *ntb);
/**
- * ntb_default_port_count() - get the default number of peer device ports
+ * ntb_default_peer_port_count() - get the default number of peer device ports
* @ntb: NTB device context.
*
* By default hardware driver supports just one peer device.
@@ -578,7 +578,7 @@ int ntb_default_peer_port_count(struct n
/**
* ntb_default_peer_port_number() - get the default peer port by given index
* @ntb: NTB device context.
- * @idx: Peer port index (should not differ from zero).
+ * @pidx: Peer port index (should not differ from zero).
*
* By default hardware driver supports just one peer device, so this method
* shall return the corresponding value from enum ntb_default_port.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] NTB: fix kernel-doc warnings in ntb.h
2026-03-12 5:14 [PATCH] NTB: fix kernel-doc warnings in ntb.h Randy Dunlap
@ 2026-03-12 17:11 ` Dave Jiang
0 siblings, 0 replies; 2+ messages in thread
From: Dave Jiang @ 2026-03-12 17:11 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel; +Cc: Jon Mason, Allen Hubbe, ntb
On 3/11/26 10:14 PM, Randy Dunlap wrote:
> Correct a function name and function parameter name to avoid
> kernel-doc warnings:
>
> Warning: include/linux/ntb.h:575 expecting prototype for
> ntb_default_port_count(). Prototype was for ntb_default_peer_port_count()
> instead
> Warning: include/linux/ntb.h:590 function parameter 'pidx' not
> described in 'ntb_default_peer_port_number'
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Jon Mason <jdmason@kudzu.us>
> Cc: Dave Jiang <dave.jiang@intel.com>
> Cc: Allen Hubbe <allenbh@gmail.com>
> Cc: ntb@lists.linux.dev
Acked-by: Dave Jiang <dave.jiang@intel.com>
>
> include/linux/ntb.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-next-20260311.orig/include/linux/ntb.h
> +++ linux-next-20260311/include/linux/ntb.h
> @@ -563,7 +563,7 @@ void ntb_msg_event(struct ntb_dev *ntb);
> int ntb_default_port_number(struct ntb_dev *ntb);
>
> /**
> - * ntb_default_port_count() - get the default number of peer device ports
> + * ntb_default_peer_port_count() - get the default number of peer device ports
> * @ntb: NTB device context.
> *
> * By default hardware driver supports just one peer device.
> @@ -578,7 +578,7 @@ int ntb_default_peer_port_count(struct n
> /**
> * ntb_default_peer_port_number() - get the default peer port by given index
> * @ntb: NTB device context.
> - * @idx: Peer port index (should not differ from zero).
> + * @pidx: Peer port index (should not differ from zero).
> *
> * By default hardware driver supports just one peer device, so this method
> * shall return the corresponding value from enum ntb_default_port.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-12 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-12 5:14 [PATCH] NTB: fix kernel-doc warnings in ntb.h Randy Dunlap
2026-03-12 17:11 ` Dave Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®