* [PATCH] of: base: Document prefix argument for of_get_next_child_with_prefix()
@ 2024-11-28 4:26 Chen-Yu Tsai
2024-11-29 1:50 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Chen-Yu Tsai @ 2024-11-28 4:26 UTC (permalink / raw)
To: Rob Herring, Saravana Kannan, Wolfram Sang
Cc: Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel,
Andy Shevchenko, linux-i2c, kernel test robot
When of_get_next_child_with_prefix() was added, the prefix argument was
left undocumented. This caused a new warning to be generated during the
kerneldoc build process:
drivers/of/base.c:661: warning: Function parameter or struct member 'prefix'
not described in 'of_get_next_child_with_prefix'
Properly document the argument to fix this.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411280010.KGSDBOUE-lkp@intel.com/
Fixes: 1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
---
As requested. I assume Rob would give an ack for this to go through the
I2C tree since the offending commit is there as well.
I also put this patch on git.kernel.org hoping that it gets some bot
coverage soon:
http://git.kernel.org/wens/h/of_get_next_child_with_prefix-kdoc-fix
I guess I should have put the original patches on a separate branch on
git.kernel.org for bots to run earlier. I'm sorry for not catching this
sooner.
drivers/of/base.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 4cba021c89d3..7dc394255a0a 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -648,6 +648,7 @@ EXPORT_SYMBOL(of_get_next_child);
* of_get_next_child_with_prefix - Find the next child node with prefix
* @node: parent node
* @prev: previous child of the parent node, or NULL to get first
+ * @prefix: prefix that the node name should have
*
* This function is like of_get_next_child(), except that it automatically
* skips any nodes whose name doesn't have the given prefix.
--
2.47.0.338.g60cca15819-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] of: base: Document prefix argument for of_get_next_child_with_prefix()
2024-11-28 4:26 [PATCH] of: base: Document prefix argument for of_get_next_child_with_prefix() Chen-Yu Tsai
@ 2024-11-29 1:50 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2024-11-29 1:50 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Rob Herring, Saravana Kannan, Wolfram Sang, devicetree,
linux-arm-kernel, linux-kernel, Andy Shevchenko, linux-i2c,
kernel test robot
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
On Thu, Nov 28, 2024 at 12:26:30PM +0800, Chen-Yu Tsai wrote:
> When of_get_next_child_with_prefix() was added, the prefix argument was
> left undocumented. This caused a new warning to be generated during the
> kerneldoc build process:
>
> drivers/of/base.c:661: warning: Function parameter or struct member 'prefix'
> not described in 'of_get_next_child_with_prefix'
>
> Properly document the argument to fix this.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202411280010.KGSDBOUE-lkp@intel.com/
> Fixes: 1fcc67e3a354 ("of: base: Add for_each_child_of_node_with_prefix()")
> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Applied to for-mergewindow, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-29 1:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28 4:26 [PATCH] of: base: Document prefix argument for of_get_next_child_with_prefix() Chen-Yu Tsai
2024-11-29 1:50 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox