From nobody Fri Nov 29 18:40:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1632401716; cv=none; d=zohomail.com; s=zohoarc; b=YjdHXJuA53Hilcq8fQjMm3ykoRkUQ2RnixG/AAKS2B0I6udJEqj3TlTXgHPlyQtrmWCmjp2Seml3JfyJIEalBAHH5fiGONsS92dKnqd09x5XyU+nxu8VE1biSHlfPbmg9eQ6szAdu78uq0ouXVM4ouFM0SlVOEdog1Z1LwwzrTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632401716; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yvjDacI417BPdKlJvGk7p+c4OF7HOtW+eGbmd4BLwuQ=; b=FpGN3flKA8ppB9LUJfBaGOS1xRb/8419YI3kBsGdMcD/JEyu+oN6k3D4VT2q5Ad4CCkyAQNn+BqIkmYGlMKjzxFBrXSHAInl3Ze3seTiZHidazU3GYrxA47pOXOzDSf7XM0A1jFsNlA76Y4Dg5ChbnW9EuGo8Vm/D1LKFrXZRAc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1632401716614910.7490250051819; Thu, 23 Sep 2021 05:55:16 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.194104.345788 (Exim 4.92) (envelope-from ) id 1mTOFj-00069W-Rj; Thu, 23 Sep 2021 12:55:03 +0000 Received: by outflank-mailman (output) from mailman id 194104.345788; Thu, 23 Sep 2021 12:55:03 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTOFj-00069K-O4; Thu, 23 Sep 2021 12:55:03 +0000 Received: by outflank-mailman (input) for mailman id 194104; Thu, 23 Sep 2021 12:55:03 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTOFj-0004it-36 for xen-devel@lists.xenproject.org; Thu, 23 Sep 2021 12:55:03 +0000 Received: from mail-lf1-x12d.google.com (unknown [2a00:1450:4864:20::12d]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id f9edd8dd-1b80-4a1e-8fa5-90642b8eaa89; Thu, 23 Sep 2021 12:54:46 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id z24so26706855lfu.13 for ; Thu, 23 Sep 2021 05:54:46 -0700 (PDT) Received: from localhost.localdomain ([185.199.97.5]) by smtp.gmail.com with ESMTPSA id l7sm453584lfk.52.2021.09.23.05.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 05:54:44 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: f9edd8dd-1b80-4a1e-8fa5-90642b8eaa89 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yvjDacI417BPdKlJvGk7p+c4OF7HOtW+eGbmd4BLwuQ=; b=KOEKA0CpK+2fx5D8i0IiC0UcNJ/awgi6r6h3MF+wm7BRKSywc3+9cvPq9lK1ldbvVY EYGyrKDvqHOiz5P9ip+8adsBWwjA6oy3VhcUlYED1KOIxEdKFrLXjdoUQ9JuAXR/7PtJ WtISAU9iKzh3nSH9rougHWArA+9Z4dW07ff4PaOFjrDe+7a28spqEEv3ON2hZzYwfd/Q C3sNpeq3Z6Ab8EqyG06A3nfyN3BhBQ99XH9KjDKXzNrOKXZqIl26S3cpv5KVF6Ptca9E Jl50A4MC/9vspNZNPNnO4q6j9tKZWtCX2zgfkc3TeyAEB3vapwjc1PQd6r9KjzbeIHpC sOmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yvjDacI417BPdKlJvGk7p+c4OF7HOtW+eGbmd4BLwuQ=; b=2s2X6EtyT57HVCmhiEsr0lTzfyz+rTrmBmPzzM/Rw56ucbeEYJ0rRZe2bQN1q8qlTl DJ5rq+k2lXhF1F3SrimBIFFL+bZw49hGMfmUikGu43yfJULJyNt7uQrP3juKXEVoiimw eomvl95cf+RcN7cwfUwf4lqFumRdEJB1NwR910Cce9UAzwezoxt0NXdHWNf2MsP4FPpn MunFb+3G7WtjcpkKNpQkbprm4BDttiNePfpXAm5Q7nyP3Wpda9bcFKc9/KULjMzoQ618 tz5WuRPNtlEh13ZwRRszl/PqR8WSjdkxCPd4oSXgAgyfH0gO+GKk7TnzLcI20Er02mYP NDTw== X-Gm-Message-State: AOAM531GsWQjAcfh1sRrOYX//hTul6ajy/anrVRb2uiFP/cnG4wYi8zj ZQJ6pKRE/GabCj/CwRO4JwcxscvdVRJbVg== X-Google-Smtp-Source: ABdhPJyT22i21H5QrosLmLTvjvbY/GOQr+1/ScI3gtJHYC4bLwkBlXfvXTV5VzcTJKuzm1EhUp3eEw== X-Received: by 2002:a19:c1c3:: with SMTP id r186mr4106670lff.400.1632401684938; Thu, 23 Sep 2021 05:54:44 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org Cc: 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: [PATCH v2 04/11] xen/device-tree: Make dt_find_node_by_phandle global Date: Thu, 23 Sep 2021 15:54:31 +0300 Message-Id: <20210923125438.234162-5-andr2000@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210923125438.234162-1-andr2000@gmail.com> References: <20210923125438.234162-1-andr2000@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1632401718497100001 Content-Type: text/plain; charset="utf-8" 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 *de= v, * * 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; =20 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_n= ode *np, */ int dt_get_pci_domain_nr(struct dt_device_node *node); =20 +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) --=20 2.25.1