From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E5E0C433F5 for ; Fri, 24 Sep 2021 23:51:40 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C9EE961038 for ; Fri, 24 Sep 2021 23:51:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C9EE961038 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.195712.348533 (Exim 4.92) (envelope-from ) id 1mTuyW-0006YG-DL; Fri, 24 Sep 2021 23:51:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 195712.348533; Fri, 24 Sep 2021 23:51:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTuyW-0006Y9-AK; Fri, 24 Sep 2021 23:51:28 +0000 Received: by outflank-mailman (input) for mailman id 195712; Fri, 24 Sep 2021 23:51:26 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTuyU-0006Y3-M6 for xen-devel@lists.xenproject.org; Fri, 24 Sep 2021 23:51:26 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 81b02602-c84c-472e-8247-e0e2a2d6a9ea; Fri, 24 Sep 2021 23:51:25 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D43D161250; Fri, 24 Sep 2021 23:51:24 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 81b02602-c84c-472e-8247-e0e2a2d6a9ea DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632527485; bh=Ack5/UqmxYXHPfI3KCJ5he7bOUsz5tmrXD9+cyyP6tg=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=NInlFZupMSFB4HG+w5qSVF5rQ4onuU73MBj6w5rFPjvyE4jzXkkaUwntDMVowlvOC h8F+5UcZCfi3KD+uWQoFrWL1Il94BCebrsw9wiybtcRfGJFhP4IHiJgBPRGL+20TBW Im2IYifGbjiTS0sYvw18EeXBgmfsfqTymg40h6DEPRoYPgg/JMPh54WFR30TPakkRo Zodw4MTDX9sB2zhuSZ3aQEXvmjJiBtnA+causraesMyCM6m/7YM8XJuBiC0j8TBCoA REwhUrqwaMEhc7nV21szgkGkA2whu2DDtK4Osh2PTKLZBjrz7AseMJ4zzAAfRMAYQD RHXmExOjU3oaw== Date: Fri, 24 Sep 2021 16:51:23 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Oleksandr Andrushchenko cc: xen-devel@lists.xenproject.org, julien@xen.org, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com, volodymyr_babchuk@epam.com, Artem_Mygaiev@epam.com, roger.pau@citrix.com, bertrand.marquis@arm.com, rahul.singh@arm.com, Oleksandr Andrushchenko Subject: Re: [PATCH v2 04/11] xen/device-tree: Make dt_find_node_by_phandle global In-Reply-To: <20210923125438.234162-5-andr2000@gmail.com> Message-ID: References: <20210923125438.234162-1-andr2000@gmail.com> <20210923125438.234162-5-andr2000@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Thu, 23 Sep 2021, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Make dt_find_node_by_phandle globally visible, so it can be re-used by > other frameworks. > > Signed-off-by: Oleksandr Andrushchenko Reviewed-by: Stefano Stabellini > --- > xen/common/device_tree.c | 2 +- > xen/include/xen/device_tree.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c > index ea93da1725f6..4aae281e89bf 100644 > --- a/xen/common/device_tree.c > +++ b/xen/common/device_tree.c > @@ -1047,7 +1047,7 @@ int dt_for_each_range(const struct dt_device_node *dev, > * > * Returns a node pointer. > */ > -static struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle) > +struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle) > { > struct dt_device_node *np; > > diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h > index 9069040ef7f7..3334048d3bb5 100644 > --- a/xen/include/xen/device_tree.h > +++ b/xen/include/xen/device_tree.h > @@ -850,6 +850,8 @@ int dt_count_phandle_with_args(const struct dt_device_node *np, > */ > int dt_get_pci_domain_nr(struct dt_device_node *node); > > +struct dt_device_node *dt_find_node_by_phandle(dt_phandle handle); > + > #ifdef CONFIG_DEVICE_TREE_DEBUG > #define dt_dprintk(fmt, args...) \ > printk(XENLOG_DEBUG fmt, ## args) > -- > 2.25.1 >