From patchwork Thu Oct 3 04:19:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1171062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46kKZC6BKtz9sPJ for ; Thu, 3 Oct 2019 14:21:07 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="LxTiaf4M"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 46kKZC55jDzDqXK for ; Thu, 3 Oct 2019 14:21:07 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 46kKX718S9zDqWm for ; Thu, 3 Oct 2019 14:19:19 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="LxTiaf4M"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46kKX65Czwz9sP7; Thu, 3 Oct 2019 14:19:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1570076358; bh=6B17It2URfmo5uSK3wOuuVq7SDDNz8IjKfz+tB0b/Lk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LxTiaf4MlbM297kLnYhR3qto/Jku6/LenxA6jiOAuCkfg1pDph2nDEWMe0hTb1YeK vkCkDdaD1OsDejkrfH+pkRbd6WiLZgyxj/T2Sx8T5a2etmOIzqncvtau7LeypxN3Ua v0PV7IfYS0R6a5joVm/pm0FVLDhH0UQUmn0w9VHWRmD8enuUq5wwtBgAZ2cQa9eCQt fckVbBlGFffmKvpof9F5UK187u/tpK/qFFZcyr1hLca8vyHGfpmMV9lxfR6S0wRtWK FVNsy+e3aGktVVXrYcZYRAO4fQCVWee260fgBsxH5c5mp5Aw0rMf8vxizvIFHdbpEu pAmOJIJo0bJGg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 3 Oct 2019 14:19:04 +1000 Message-Id: <20191003041909.23187-26-amitay@ozlabs.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191003041909.23187-1-amitay@ozlabs.org> References: <20191003041909.23187-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v4 25/30] libpdbg: Do not make pdbg_default_dtb public X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Applications should never need to know the default fdt to be used. For some reason applications need to get access to the fdt blob, we can add appropriate public api. Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- libpdbg/dtb.c | 1 + libpdbg/libpdbg.h | 1 - libpdbg/target.h | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 1f70d1c..e19ce95 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -28,6 +28,7 @@ #include #include "libpdbg.h" +#include "target.h" #include "fake.dt.h" diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index 3e4d03b..9cef3b7 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -108,7 +108,6 @@ void pdbg_target_release(struct pdbg_target *target); enum pdbg_target_status pdbg_target_status(struct pdbg_target *target); void pdbg_target_status_set(struct pdbg_target *target, enum pdbg_target_status status); bool pdbg_set_backend(enum pdbg_backend backend, const char *backend_option); -void *pdbg_default_dtb(void); uint32_t pdbg_target_index(struct pdbg_target *target); char *pdbg_target_path(struct pdbg_target *target); struct pdbg_target *pdbg_target_from_path(struct pdbg_target *target, const char *path); diff --git a/libpdbg/target.h b/libpdbg/target.h index df4f3f8..0422406 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -64,6 +64,7 @@ bool pdbg_target_is_class(struct pdbg_target *target, const char *class); extern struct list_head empty_list; extern struct list_head target_classes; +void *pdbg_default_dtb(void); const char *pdbg_get_backend_option(void); struct sbefifo *pib_to_sbefifo(struct pdbg_target *target);