From 2935751bfd6ee1c80c7add72f275a2df7a5b3ab6 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 19 Jan 2022 01:04:54 +0800 Subject: [PATCH] Fix error: implicit declaration of function 'up_cpu_index' Signed-off-by: Xiang Xiao --- arch/arm/src/arm/arm_syscall.c | 2 +- arch/arm/src/arm/arm_undefinedinsn.c | 2 +- arch/arm/src/armv7-a/arm_syscall.c | 2 +- arch/arm/src/armv7-a/arm_undefinedinsn.c | 2 +- arch/arm/src/armv7-r/arm_syscall.c | 2 +- arch/arm/src/armv7-r/arm_undefinedinsn.c | 2 +- arch/arm/src/c5471/c5471_irq.c | 2 +- arch/arm/src/dm320/dm320_irq.c | 2 +- arch/arm/src/lpc214x/lpc214x_irq.c | 2 +- arch/arm/src/lpc2378/lpc23xx_irq.c | 2 +- arch/mips/src/common/mips_lowputs.c | 1 + arch/mips/src/mips32/mips_copystate.c | 2 +- arch/mips/src/pic32mx/pic32mx_lowinit.c | 1 + arch/mips/src/pic32mz/pic32mz_lowinit.c | 1 + arch/xtensa/src/esp32/esp32_intercpu_interrupt.c | 1 + 15 files changed, 15 insertions(+), 11 deletions(-) diff --git a/arch/arm/src/arm/arm_syscall.c b/arch/arm/src/arm/arm_syscall.c index 9f4b0566f2..68f279d6c4 100644 --- a/arch/arm/src/arm/arm_syscall.c +++ b/arch/arm/src/arm/arm_syscall.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "arm_arch.h" #include "arm_internal.h" diff --git a/arch/arm/src/arm/arm_undefinedinsn.c b/arch/arm/src/arm/arm_undefinedinsn.c index 8dbc1ae997..2ef7eacbcb 100644 --- a/arch/arm/src/arm/arm_undefinedinsn.c +++ b/arch/arm/src/arm/arm_undefinedinsn.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "arm_internal.h" diff --git a/arch/arm/src/armv7-a/arm_syscall.c b/arch/arm/src/armv7-a/arm_syscall.c index 999d1b1df2..d38a8e794a 100644 --- a/arch/arm/src/armv7-a/arm_syscall.c +++ b/arch/arm/src/armv7-a/arm_syscall.c @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include diff --git a/arch/arm/src/armv7-a/arm_undefinedinsn.c b/arch/arm/src/armv7-a/arm_undefinedinsn.c index 79b6ec9c93..f5202b7a90 100644 --- a/arch/arm/src/armv7-a/arm_undefinedinsn.c +++ b/arch/arm/src/armv7-a/arm_undefinedinsn.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "arm_internal.h" diff --git a/arch/arm/src/armv7-r/arm_syscall.c b/arch/arm/src/armv7-r/arm_syscall.c index 367c41cf8e..dde0ac415b 100644 --- a/arch/arm/src/armv7-r/arm_syscall.c +++ b/arch/arm/src/armv7-r/arm_syscall.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include "signal/signal.h" diff --git a/arch/arm/src/armv7-r/arm_undefinedinsn.c b/arch/arm/src/armv7-r/arm_undefinedinsn.c index a1dc92d3cb..f6fd55e801 100644 --- a/arch/arm/src/armv7-r/arm_undefinedinsn.c +++ b/arch/arm/src/armv7-r/arm_undefinedinsn.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "arm_internal.h" diff --git a/arch/arm/src/c5471/c5471_irq.c b/arch/arm/src/c5471/c5471_irq.c index 522e5a345f..aeb14ae328 100644 --- a/arch/arm/src/c5471/c5471_irq.c +++ b/arch/arm/src/c5471/c5471_irq.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include "arm.h" #include "chip.h" diff --git a/arch/arm/src/dm320/dm320_irq.c b/arch/arm/src/dm320/dm320_irq.c index 08d9447d45..9c0c3fc97c 100644 --- a/arch/arm/src/dm320/dm320_irq.c +++ b/arch/arm/src/dm320/dm320_irq.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include "arm.h" #include "chip.h" diff --git a/arch/arm/src/lpc214x/lpc214x_irq.c b/arch/arm/src/lpc214x/lpc214x_irq.c index e702d41b3d..9e45211133 100644 --- a/arch/arm/src/lpc214x/lpc214x_irq.c +++ b/arch/arm/src/lpc214x/lpc214x_irq.c @@ -26,7 +26,7 @@ #include #include -#include +#include #include "arm.h" #include "chip.h" diff --git a/arch/arm/src/lpc2378/lpc23xx_irq.c b/arch/arm/src/lpc2378/lpc23xx_irq.c index 05500baec9..f65ce0d701 100644 --- a/arch/arm/src/lpc2378/lpc23xx_irq.c +++ b/arch/arm/src/lpc2378/lpc23xx_irq.c @@ -47,7 +47,7 @@ #include #include #include -#include +#include #include "arm.h" #include "chip.h" diff --git a/arch/mips/src/common/mips_lowputs.c b/arch/mips/src/common/mips_lowputs.c index 4cb8d9e862..8d0628d913 100644 --- a/arch/mips/src/common/mips_lowputs.c +++ b/arch/mips/src/common/mips_lowputs.c @@ -23,6 +23,7 @@ ****************************************************************************/ #include +#include #include "mips_internal.h" diff --git a/arch/mips/src/mips32/mips_copystate.c b/arch/mips/src/mips32/mips_copystate.c index 3d7e5ebd8f..6ae765949e 100644 --- a/arch/mips/src/mips32/mips_copystate.c +++ b/arch/mips/src/mips32/mips_copystate.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include "mips_internal.h" diff --git a/arch/mips/src/pic32mx/pic32mx_lowinit.c b/arch/mips/src/pic32mx/pic32mx_lowinit.c index 05401c423c..5660e9a1e9 100644 --- a/arch/mips/src/pic32mx/pic32mx_lowinit.c +++ b/arch/mips/src/pic32mx/pic32mx_lowinit.c @@ -26,6 +26,7 @@ #include +#include #include #include "mips_internal.h" diff --git a/arch/mips/src/pic32mz/pic32mz_lowinit.c b/arch/mips/src/pic32mz/pic32mz_lowinit.c index 713e85b263..021874285d 100644 --- a/arch/mips/src/pic32mz/pic32mz_lowinit.c +++ b/arch/mips/src/pic32mz/pic32mz_lowinit.c @@ -26,6 +26,7 @@ #include +#include #include #include diff --git a/arch/xtensa/src/esp32/esp32_intercpu_interrupt.c b/arch/xtensa/src/esp32/esp32_intercpu_interrupt.c index 115a0e2dbf..ad9d059a5d 100644 --- a/arch/xtensa/src/esp32/esp32_intercpu_interrupt.c +++ b/arch/xtensa/src/esp32/esp32_intercpu_interrupt.c @@ -29,6 +29,7 @@ #include #include +#include #include #include "hardware/esp32_dport.h"