[PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()

Xu Yang posted 2 patches 3 days, 13 hours ago
drivers/base/test/Kconfig               |   1 +
drivers/base/test/property-entry-test.c | 137 ++++++++++++++++++++++++
drivers/of/kobj.c                       |   2 +
3 files changed, 140 insertions(+)
[PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()
Posted by Xu Yang 3 days, 13 hours ago
From: Xu Yang <xu.yang_2@nxp.com>

This patchset will fix lkp reported issue when adding test cases for
fwnode_for_each_child_node().

  ERROR: modpost: "of_node_ktype"
    [drivers/base/test/property-entry-test.ko] undefined!

Xu Yang (2):
  of: kobj: export of_node_ktype for use by modules
  device property: add test cases for fwnode_for_each_child_node()

 drivers/base/test/Kconfig               |   1 +
 drivers/base/test/property-entry-test.c | 137 ++++++++++++++++++++++++
 drivers/of/kobj.c                       |   2 +
 3 files changed, 140 insertions(+)

-- 
2.34.1
Re: [PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()
Posted by Danilo Krummrich 3 days, 2 hours ago
On Tue, 21 Jul 2026 18:54:46 +0800, Xu Yang wrote:
> [PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()

Applied, thanks!

  Branch: driver-core-testing
  Tree:   git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git

[1/2] of: kobj: export of_node_ktype for use by modules
      commit: 08bc14983723

      [ Add empty line before the kunit include. - Danilo ]

[2/2] device property: add test cases for fwnode_for_each_child_node()
      commit: 0e6f8ccd4618

The patches will appear in the next linux-next integration (typically within 24
hours on weekdays).

The patches are in the driver-core-testing branch and will be promoted to
driver-core-next after validation.
Re: [PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()
Posted by Andy Shevchenko 3 days, 13 hours ago
On Tue, Jul 21, 2026 at 06:54:46PM +0800, Xu Yang wrote:

> This patchset will fix lkp reported issue when adding test cases for
> fwnode_for_each_child_node().
> 
>   ERROR: modpost: "of_node_ktype"
>     [drivers/base/test/property-entry-test.ko] undefined!

Why v6? Where is changelog?
No need to resend this time, reply with missing information added.

> Xu Yang (2):
>   of: kobj: export of_node_ktype for use by modules
>   device property: add test cases for fwnode_for_each_child_node()

-- 
With Best Regards,
Andy Shevchenko
Re: [PATCH v6 0/2] device property: add test cases for fwnode_for_each_child_node()
Posted by Xu Yang 3 days, 9 hours ago
Hi Andy,

On Tue, Jul 21, 2026 at 02:15:22PM +0300, Andy Shevchenko wrote:
> On Tue, Jul 21, 2026 at 06:54:46PM +0800, Xu Yang wrote:
> 
> > This patchset will fix lkp reported issue when adding test cases for
> > fwnode_for_each_child_node().
> > 
> >   ERROR: modpost: "of_node_ktype"
> >     [drivers/base/test/property-entry-test.ko] undefined!
> 
> Why v6? Where is changelog?
> No need to resend this time, reply with missing information added.

The previous patchset was v5, which I created by continuing from the
v4 patchset you had pushed.
So I continue v6 here.

Changes in v6:
 - Use EXPORT_SYMBOL_IF_KUNIT(of_node_ktype) for kuint test

Changes in v5:
 - add EXPORT_SYMBOL_GPL(of_node_ktype) to fix the issue
 - Link: https://lore.kernel.org/driver-core/20260720104730.1285552-1-xu.yang_2@oss.nxp.com/

Thanks,
Xu Yang