Message ID | 20200417070749.276754-6-amitay@ozlabs.org |
---|---|
State | Superseded |
Headers | show |
Series | Add sbefifo backend | expand |
Reviewed-by: Alistair Popple <alistair@popple.id.au> On Friday, 17 April 2020 5:07:29 PM AEST Amitay Isaacs wrote: > Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> > --- > libpdbg/dtb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c > index 70b7962..ef51718 100644 > --- a/libpdbg/dtb.c > +++ b/libpdbg/dtb.c > @@ -234,7 +234,7 @@ static void bmc_target(struct pdbg_dtb *dtb) > } > > /* Opens a dtb at the given path */ > -static void mmap_dtb(char *file, bool readonly, struct pdbg_mfile *mfile) > +static void mmap_dtb(const char *file, bool readonly, struct pdbg_mfile > *mfile) { > int fd; > void *dtb; > @@ -308,7 +308,7 @@ const char *pdbg_get_backend_option(void) > struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) > { > struct pdbg_dtb *dtb = &pdbg_dtb; > - char *fdt; > + const char *fdt; > > dtb->backend.fdt = NULL; > dtb->system.fdt = system_fdt;
diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 70b7962..ef51718 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -234,7 +234,7 @@ static void bmc_target(struct pdbg_dtb *dtb) } /* Opens a dtb at the given path */ -static void mmap_dtb(char *file, bool readonly, struct pdbg_mfile *mfile) +static void mmap_dtb(const char *file, bool readonly, struct pdbg_mfile *mfile) { int fd; void *dtb; @@ -308,7 +308,7 @@ const char *pdbg_get_backend_option(void) struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) { struct pdbg_dtb *dtb = &pdbg_dtb; - char *fdt; + const char *fdt; dtb->backend.fdt = NULL; dtb->system.fdt = system_fdt;
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- libpdbg/dtb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)