[Pdbg] [PATCH v2 21/24] libpdbg: Drop unused function pib_to_sbefifo

Alistair Popple alistair at popple.id.au
Wed Nov 20 14:59:24 AEDT 2019


Reviewed-by: Alistair Popple <alistair at popple.id.au>

On Thursday, 7 November 2019 1:28:05 PM AEDT Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
> ---
>  libpdbg/target.c | 19 -------------------
>  libpdbg/target.h |  1 -
>  2 files changed, 20 deletions(-)
> 
> diff --git a/libpdbg/target.c b/libpdbg/target.c
> index 603f206..dcbee2f 100644
> --- a/libpdbg/target.c
> +++ b/libpdbg/target.c
> @@ -271,25 +271,6 @@ int mem_write(struct pdbg_target *target, uint64_t addr, uint8_t *input, uint64_
>  	return rc;
>  }
>  
> -struct sbefifo *pib_to_sbefifo(struct pdbg_target *pib)
> -{
> -	struct pdbg_target *sbefifo;
> -	uint32_t index;
> -
> -	assert(pdbg_target_is_class(pib, "pib"));
> -	index = pdbg_target_index(pib);
> -
> -	pdbg_for_each_class_target("sbefifo", sbefifo) {
> -		if (pdbg_target_index(sbefifo) != index)
> -			continue;
> -
> -		if (pdbg_target_probe(sbefifo) == PDBG_TARGET_ENABLED)
> -			return target_to_sbefifo(sbefifo);
> -	}
> -
> -	return NULL;
> -}
> -
>  struct chipop *pib_to_chipop(struct pdbg_target *pib)
>  {
>  	struct pdbg_target *chipop;
> diff --git a/libpdbg/target.h b/libpdbg/target.h
> index ca79a84..e6f1bef 100644
> --- a/libpdbg/target.h
> +++ b/libpdbg/target.h
> @@ -72,7 +72,6 @@ extern struct list_head target_classes;
>  void pdbg_default_dtb(struct pdbg_dtb *pdtb);
>  const char *pdbg_get_backend_option(void);
>  
> -struct sbefifo *pib_to_sbefifo(struct pdbg_target *target);
>  struct chipop *pib_to_chipop(struct pdbg_target *target);
>  bool target_is_virtual(struct pdbg_target *target);
>  struct pdbg_target *target_to_real(struct pdbg_target *target, bool strict);
> 






More information about the Pdbg mailing list