Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1577983pxb; Sun, 10 Jan 2021 03:19:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBfnQxYPDxzWSQOEdsZfyB5AhKs06HUTa3yzLycqekEjavfGlJgG3S7BbJK66NNbeu9VFO X-Received: by 2002:aa7:d7d8:: with SMTP id e24mr10825772eds.135.1610277582098; Sun, 10 Jan 2021 03:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610277582; cv=none; d=google.com; s=arc-20160816; b=VhUy53IleRMMi/+Y86/QvSX97zzWQ8FnIBnPCtYzFySMihnwlGt2Xwdri5ceI9Cs+d 6juDDUVey5ktAFJpo5G4R0yMW2EyPPYjEf5UUov/vai1mRIXkhtu4lU36gMthlCmOUkA 6mNX2WKyqSj2UBk04TYvv6gQEMRWkSQrkb9CQmCeHcVBcUdR2nRYkTEm02eB8sTeBqw1 zQ/nznHTPvPADQjUyvyQ7f3YSRlFqaJ4d2Sv+KI5RwIv3NcfgNb2hwVSNkbzastl6nvJ MWK3lGqUmBnKgwnWWJtyXkvy6pPOLdcGTvRpwbDJoRvruWmxbfqq/ANlgHqflrtoYqRY tIBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ymR/c+Q1RbaHnxImMylObjxl3uqWTq2orwJCIJo9rkk=; b=OiecIXuJ/SQ1mIp4m92MjJgnCDyuaw0vUaDTmJvRln8W4B1LFRP8YQxQOnBINuo200 RGHsuYTP3hMNq8yFAErbsmigmH8J1Cs+8T4graHvXsF/ItXTrqpCSVIu0SU4wTIWp14a KL5yXfG0sJp9U693HV9Y1LU8eOg2AMTxHCi2VUkXcNFdBZJMt3vFOV8D4R+plMEnIpPa tI2nDrZWTiZjgaq+an91FPhahQw8afBhqFyuhKcanYfd/jiunCM4/jIYgGbhrhmk58uW KH4ztBsjv6gbXJm/10bHe2U+tJYQI8eBXvi/umM/VhL8v0K0sbgbWXJ0eZdpWJbRYa+e yxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mlEZLkQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si5752754edq.100.2021.01.10.03.19.18; Sun, 10 Jan 2021 03:19:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mlEZLkQL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbhAJLRb (ORCPT + 99 others); Sun, 10 Jan 2021 06:17:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbhAJLRa (ORCPT ); Sun, 10 Jan 2021 06:17:30 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84555C061786; Sun, 10 Jan 2021 03:16:49 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C645DDA; Sun, 10 Jan 2021 12:16:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1610277405; bh=PGy0AozDcrEmSiml7wOsTFqxOV88TZM0PfDLFlDrYhk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mlEZLkQLihZHbMAtuf4sP9D+0HGeRr6dx8LmvXEEyqUEsEd2GFIb2seBoUiDk+nIc C2IUFb9o9U18fuigij5kKOFBWe73Y5gimhb6He2N4xPM7CAm2VdGd4LpsJGYrpObDQ SySEGoW+oxj4EeIr9akoIjcJdNREYW7+BdOtuoA8= Date: Sun, 10 Jan 2021 13:16:29 +0200 From: Laurent Pinchart To: Andy Shevchenko Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Daniel Scally , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "linux-media@vger.kernel.org" , "devel@acpica.org" , "rjw@rjwysocki.net" , "lenb@kernel.org" , "gregkh@linuxfoundation.org" , "mchehab@kernel.org" , "yong.zhi@intel.com" , "sakari.ailus@linux.intel.com" , "bingbu.cao@intel.com" , "tian.shu.qiu@intel.com" , "robert.moore@intel.com" , "erik.kaneda@intel.com" , "andriy.shevchenko@linux.intel.com" , "linux@rasmusvillemoes.dk" , "laurent.pinchart+renesas@ideasonboard.com" , "jacopo+renesas@jmondi.org" , "kieran.bingham+renesas@ideasonboard.com" , "hverkuil-cisco@xs4all.nl" , "m.felsch@pengutronix.de" , "niklas.soderlund+renesas@ragnatech.se" , "prabhakar.mahadev-lad.rj@bp.renesas.com" , "slongerbeam@gmail.com" , "heikki.krogerus@linux.intel.com" Subject: Re: [PATCH v5 09/15] lib/test_printf.c: Use helper function to unwind array of software_nodes Message-ID: References: <20210107132838.396641-1-djrscally@gmail.com> <20210107132838.396641-10-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Sat, Jan 09, 2021 at 11:07:33AM +0200, Andy Shevchenko wrote: > On Saturday, January 9, 2021, Laurent Pinchart wrote: > > > Hi Peter, Steven and Sergey, > > > > Could you please let us know if you're fine with this patch getting > > merged in v5.12 through the linux-media tree ? The cover letter contains > > additional details (in a nutshell, this is a cross-tree series and we > > would like to avoid topic branches if possible). > > There is already a tag by Petr. I saw that, but looking at the corresponding e-mail, there was no clear acknowledgement that we could merge this patch through a different tree. > > On Thu, Jan 07, 2021 at 01:28:32PM +0000, Daniel Scally wrote: > > > Use the software_node_unregister_nodes() helper function to unwind this > > > array in a cleaner way. > > > > > > Acked-by: Petr Mladek > > > Reviewed-by: Andy Shevchenko > > > Reviewed-by: Laurent Pinchart > > > Reviewed-by: Sergey Senozhatsky > > > Suggested-by: Andy Shevchenko > > > Signed-off-by: Daniel Scally > > > --- > > > Changes in v5: > > > > > > - None > > > > > > lib/test_printf.c | 4 +--- > > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > > > diff --git a/lib/test_printf.c b/lib/test_printf.c > > > index 7ac87f18a10f..7d60f24240a4 100644 > > > --- a/lib/test_printf.c > > > +++ b/lib/test_printf.c > > > @@ -644,9 +644,7 @@ static void __init fwnode_pointer(void) > > > test(second_name, "%pfwP", software_node_fwnode(&softnodes[1])); > > > test(third_name, "%pfwP", software_node_fwnode(&softnodes[2])); > > > > > > - software_node_unregister(&softnodes[2]); > > > - software_node_unregister(&softnodes[1]); > > > - software_node_unregister(&softnodes[0]); > > > + software_node_unregister_nodes(softnodes); > > > } > > > > > > static void __init -- Regards, Laurent Pinchart