* [PATCH 2/6] ARM: nxp-imx8mq-evk: add missing prototype for nxp_imx8mq_evk_ddr_cfg_phy
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
@ 2018-11-30 13:12 ` Lucas Stach
2018-11-30 13:13 ` [PATCH 3/6] ARM: ptrace: add mssing show_regs prototype in aarch64 path Lucas Stach
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-11-30 13:12 UTC (permalink / raw)
To: barebox
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boards/nxp-imx8mq-evk/ddr.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boards/nxp-imx8mq-evk/ddr.h b/arch/arm/boards/nxp-imx8mq-evk/ddr.h
index 2c25e3f98cd4..8f494ae7a223 100644
--- a/arch/arm/boards/nxp-imx8mq-evk/ddr.h
+++ b/arch/arm/boards/nxp-imx8mq-evk/ddr.h
@@ -19,6 +19,7 @@
#define ddr_cfg_phy nxp_imx8mq_evk_ddr_cfg_phy
void nxp_imx8mq_evk_ddr_init(void);
+void nxp_imx8mq_evk_ddr_cfg_phy(void);
#define FW_1D_IMAGE imx_lpddr4_pmu_train_1d_imem_bin, \
imx_lpddr4_pmu_train_1d_dmem_bin
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/6] ARM: ptrace: add mssing show_regs prototype in aarch64 path
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
2018-11-30 13:12 ` [PATCH 2/6] ARM: nxp-imx8mq-evk: add missing prototype for nxp_imx8mq_evk_ddr_cfg_phy Lucas Stach
@ 2018-11-30 13:13 ` Lucas Stach
2018-11-30 13:13 ` [PATCH 4/6] ARM: interrupts64: add missing prototypes Lucas Stach
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-11-30 13:13 UTC (permalink / raw)
To: barebox
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/include/asm/ptrace.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h
index 7fbd8d9b6f2e..042e0cef700b 100644
--- a/arch/arm/include/asm/ptrace.h
+++ b/arch/arm/include/asm/ptrace.h
@@ -23,6 +23,8 @@ struct pt_regs {
unsigned long regs[31];
};
+void show_regs(struct pt_regs *);
+
#endif /* __ASSEMBLY__ */
#else /* CONFIG_CPU_64 */
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 4/6] ARM: interrupts64: add missing prototypes
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
2018-11-30 13:12 ` [PATCH 2/6] ARM: nxp-imx8mq-evk: add missing prototype for nxp_imx8mq_evk_ddr_cfg_phy Lucas Stach
2018-11-30 13:13 ` [PATCH 3/6] ARM: ptrace: add mssing show_regs prototype in aarch64 path Lucas Stach
@ 2018-11-30 13:13 ` Lucas Stach
2018-11-30 13:13 ` [PATCH 5/6] ARM: add prototype for mmu_early_disable Lucas Stach
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-11-30 13:13 UTC (permalink / raw)
To: barebox
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/cpu/interrupts_64.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/cpu/interrupts_64.c b/arch/arm/cpu/interrupts_64.c
index f6f0c9d095d2..e8475d2e4733 100644
--- a/arch/arm/cpu/interrupts_64.c
+++ b/arch/arm/cpu/interrupts_64.c
@@ -25,6 +25,16 @@
#include <asm/system.h>
#include <asm/esr.h>
+/* Avoid missing prototype warning, called from assembly */
+void do_bad_sync (struct pt_regs *pt_regs);
+void do_bad_irq (struct pt_regs *pt_regs);
+void do_bad_fiq (struct pt_regs *pt_regs);
+void do_bad_error (struct pt_regs *pt_regs);
+void do_fiq (struct pt_regs *pt_regs);
+void do_irq (struct pt_regs *pt_regs);
+void do_error (struct pt_regs *pt_regs);
+void do_sync(struct pt_regs *pt_regs, unsigned int esr, unsigned long far);
+
static const char *esr_class_str[] = {
[0 ... ESR_ELx_EC_MAX] = "UNRECOGNIZED EC",
[ESR_ELx_EC_UNKNOWN] = "Unknown/Uncategorized",
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 5/6] ARM: add prototype for mmu_early_disable
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
` (2 preceding siblings ...)
2018-11-30 13:13 ` [PATCH 4/6] ARM: interrupts64: add missing prototypes Lucas Stach
@ 2018-11-30 13:13 ` Lucas Stach
2018-11-30 13:13 ` [PATCH 6/6] ARM64: backtrace: fix missing prototypes Lucas Stach
2018-12-03 8:22 ` [PATCH 1/6] ARM: mmu64: include dma.h Sascha Hauer
5 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-11-30 13:13 UTC (permalink / raw)
To: barebox
This is only provided by aarch64 for now and not actually used, but
raher than deleting this potentially useful chunk of code, just
provide the prototype to shut up the warning.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/include/asm/mmu.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h
index 99833ac5b40f..417808bfcce1 100644
--- a/arch/arm/include/asm/mmu.h
+++ b/arch/arm/include/asm/mmu.h
@@ -56,5 +56,6 @@ void __dma_inv_range(unsigned long, unsigned long);
void mmu_early_enable(unsigned long membase, unsigned long memsize,
unsigned long ttb);
+void mmu_early_disable(void);
#endif /* __ASM_MMU_H */
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 6/6] ARM64: backtrace: fix missing prototypes
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
` (3 preceding siblings ...)
2018-11-30 13:13 ` [PATCH 5/6] ARM: add prototype for mmu_early_disable Lucas Stach
@ 2018-11-30 13:13 ` Lucas Stach
2018-12-03 8:22 ` [PATCH 1/6] ARM: mmu64: include dma.h Sascha Hauer
5 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-11-30 13:13 UTC (permalink / raw)
To: barebox
Include header for unwind_backtrace prototype and mark dump_backtrace_entry
as static.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/lib64/stacktrace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/lib64/stacktrace.c b/arch/arm/lib64/stacktrace.c
index b8352c1454da..43911884466d 100644
--- a/arch/arm/lib64/stacktrace.c
+++ b/arch/arm/lib64/stacktrace.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <asm/stacktrace.h>
+#include <asm/unwind.h>
#define THREAD_SIZE 16384
@@ -45,7 +46,7 @@ int unwind_frame(struct stackframe *frame)
return 0;
}
-void dump_backtrace_entry(unsigned long where, unsigned long from)
+static void dump_backtrace_entry(unsigned long where, unsigned long from)
{
#ifdef CONFIG_KALLSYMS
printf("[<%08lx>] (%pS) from [<%08lx>] (%pS)\n", where, (void *)where, from, (void *)from);
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/6] ARM: mmu64: include dma.h
2018-11-30 13:12 [PATCH 1/6] ARM: mmu64: include dma.h Lucas Stach
` (4 preceding siblings ...)
2018-11-30 13:13 ` [PATCH 6/6] ARM64: backtrace: fix missing prototypes Lucas Stach
@ 2018-12-03 8:22 ` Sascha Hauer
5 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2018-12-03 8:22 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Fri, Nov 30, 2018 at 02:12:58PM +0100, Lucas Stach wrote:
> dma.h provides the prototypes for the different dma_alloc_* functions,
> so we should include it to make sure the prototypes are consistent.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> arch/arm/cpu/mmu_64.c | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c
> index 69d1b20718f7..99ddd5a441b9 100644
> --- a/arch/arm/cpu/mmu_64.c
> +++ b/arch/arm/cpu/mmu_64.c
> @@ -19,6 +19,7 @@
> #define pr_fmt(fmt) "mmu: " fmt
>
> #include <common.h>
> +#include <dma.h>
> #include <dma-dir.h>
> #include <init.h>
> #include <mmu.h>
> --
> 2.19.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread