On Sun 2020-05-24 17:30:40, Greg Kroah-Hartman wrote:
> Sometimes it is better to unregister individual nodes instead of trying
> to do them all at once with software_node_unregister_nodes(), so create
> software_node_unregister() so that you can unregister them one at a
> time.
> 
> This is especially important when creating nodes in a hierarchy, with
> parent -> children representations.  Children always need to be removed
> before a parent is, as the swnode logic assumes this is going to be the
> case.
> 
> Fix up the lib/test_printf.c fwnode_pointer() test which to use this new
> function as it had the problem of tearing things down in the backwards
> order.
> 
> Fixes: f1ce39df508d ("lib/test_printf: Add tests for %pfw printk modifier")
> Reported-by: Naresh Kamboju <naresh.kamb...@linaro.org>
> Reported-by: kernel test robot <rong.a.c...@intel.com>
> Cc: stable <sta...@vger.kernel.org>
> Cc: Andy Shevchenko <andriy.shevche...@linux.intel.com>
> Cc: Brendan Higgins <brendanhigg...@google.com>
> Cc: Dmitry Torokhov <dmitry.torok...@gmail.com>
> Cc: Heikki Krogerus <heikki.kroge...@linux.intel.com>
> Cc: Petr Mladek <pmla...@suse.com>
> Cc: Rafael J. Wysocki <rafael.j.wyso...@intel.com>
> Cc: Randy Dunlap <rdun...@infradead.org>
> Cc: Rasmus Villemoes <li...@rasmusvillemoes.dk>
> Cc: Sakari Ailus <sakari.ai...@linux.intel.com>
> Cc: Sergey Senozhatsky <sergey.senozhat...@gmail.com>
> Cc: Steven Rostedt <rost...@goodmis.org>
> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

I could confirm that this fixed lib/test_printf.c. The patch looks reasonable.

Tested-by: Petr Mladek <pmla...@suse.com>

Best Regards,
Petr

Reply via email to