Message ID | 20180816055756.1011374-2-amitay@ozlabs.org |
---|---|
State | Accepted |
Headers | show |
Series | [1/5] libpdbg: Remove unused variable | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | master/apply_patch Successfully applied |
snowpatch_ozlabs/build-multiarch | success | Test build-multiarch on branch master |
diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index f0bca0c..a5a52b3 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -91,6 +91,7 @@ char *pdbg_target_class_name(struct pdbg_target *target); char *pdbg_target_name(struct pdbg_target *target); void *pdbg_target_priv(struct pdbg_target *target); void pdbg_target_priv_set(struct pdbg_target *target, void *priv); +struct pdbg_target *pdbg_target_root(void); /* Procedures */ int fsi_read(struct pdbg_target *target, uint32_t addr, uint32_t *val); diff --git a/libpdbg/target.c b/libpdbg/target.c index be3b845..1d308cc 100644 --- a/libpdbg/target.c +++ b/libpdbg/target.c @@ -413,3 +413,8 @@ void pdbg_target_priv_set(struct pdbg_target *target, void *priv) { target->priv = priv; } + +struct pdbg_target *pdbg_target_root(void) +{ + return dt_root; +}
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- libpdbg/libpdbg.h | 1 + libpdbg/target.c | 5 +++++ 2 files changed, 6 insertions(+)